[PATCH v2] win32u: Only retrieve the dc size if needed.

Florian Will florian.will at gmail.com
Fri Nov 26 04:24:05 CST 2021


Am Fr., 26. Nov. 2021 um 10:20 Uhr schrieb Huw Davies <huw at codeweavers.com>:
> I'm not exactly overjoyed with this patch as we should strive
> to make GetDeviceCaps() faster.  However, it does make a
> difference to an application and isn't too horrendous.

Thanks for the less fragile version!

Initially, a year ago or so, I tried to come up with a caching
mechanism for device caps, but that turned out to be even more
horrendous if I remember correctly (I no longer have the code). Like
not knowing when/if to invalidate entries etc. So I decided to attempt
that simple (previously) 4 line change.



More information about the wine-devel mailing list