syr1111's picture

GLControl Load event doesn't fire when using non-standard DPI

Project:The Open Toolkit library
Category:bug report

Under 0.9.9-3 the GLControl Load event does not fire when using a non-standard DPI in the operating system. This has been confirmed on separate machines under both Win XP and Vista. The Load event will fire correctly when using the default 96 DPI, but not when using 120 DPI (other custom DPIs not tested). I don't know if the DPI factor is complicit to the issue itself or just causes a side-effect that changes timing enough to change the sequence of events, but it does seem very predictable.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Can you please post a small test case that reproduces the issue? There are a lot of unknown variables in winforms+DPI scaling and this would make my job much simpler.


the Fiddler's picture


Version:0.9.9-3» 0.9.x-dev
Status:open» fixed

I haven't been able to reproduce this with the SimpleGLControl sample in Examples.exe. I have tried setting my DPI to 120 and setting AutoScaleMode to Font or Dpi - the Load event is raised in all cases.

This may have been resolved in SVN as part of a different fix - I would suggest upgrading to the latest code and checking whether it works correctly. I am going to mark this as fixed, but please reopen if the issue persists using the code from SVN. Thanks.

the Fiddler's picture


Version:0.9.x-dev» 1.0-beta-1
Status:fixed» closed

Closing issues fixed in 1.0 beta-1.