jdomnitz's picture

Resolution changes are ignored

Project:The Open Toolkit library
Category:bug report
Status:in progress

If the screen resolution changes...OpenTK ignores this change and maintains the incorrect DisplayDevice struct. This struct should be updated when a resolution changes.


Comment viewing options

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


Version:all versions» 1.x-dev
Status:confirmed» in progress

This is now implemented on Windows (trunk, r2969).

jdomnitz's picture


Is this tested? I was under the impression Microsoft.Win32.SystemEvents.DisplaySettingsChanged is only fired when used with winforms. I haven't tested this code yet (have quite a few changes to get it all implemented in my application) but when I implemented this I couldn't get it to fire under win7 for screen resolution changes and ended up just listening for WM_DISPLAYCHANGE.

the Fiddler's picture


Microsoft.Win32.SystemEvents.DisplaySettingsChanged is in System.dll, so it should be independent of winforms. Some quick testing showed that it fires after a resolution change (WinXP virtual machine) but fails to fire on Linux.

jdomnitz's picture


Can you test it in Vista or win7? Those implement the new display system and may function differently.

For Linux you will want to listen for the RRScreenChangeNotify event.
See here: