Am Fr., 26. Nov. 2021 um 10:20 Uhr schrieb Huw Davies huw@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.