On 20 October 2015 at 16:39, Riccardo Bortolato rikyz619@gmail.com wrote:
Yes, but since the only usage of getdc_supported is really in that function, it feels pointless to store it anyway.
IIRC the original reason for storing the result in a flag was to avoid recalculating it every time GetDC() is called. GetDC() is perhaps not extremely performance critical, but it will still be called a fair amount by applications that use it. It's possible to move it, but without a clear need that would need some performance data to back it up.