jdomnitz's picture

Resolution changes are ignored

Project:The Open Toolkit library
Version:1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:in progress
Description

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


Comments

Comment viewing options

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

#1

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

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

jdomnitz's picture

#2

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

#3

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

#4

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:
http://keithp.com/~keithp/talks/randr/protocol.txt