]> git.tdb.fi Git - libs/gui.git/commitdiff
Initialize monitor.current_settings on Windows
authorMikko Rasa <tdb@tdb.fi>
Thu, 6 Jun 2019 09:29:49 +0000 (12:29 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 6 Jun 2019 09:29:49 +0000 (12:29 +0300)
source/graphics/windows/display.cpp

index 2364f6d9c05422a3413550fceef94ae5a63389f7..61fe9837d6d1db0e4cc9f7da8edcbd1f02e9c3bd 100644 (file)
@@ -55,6 +55,8 @@ Display::Display(const string &):
                        if(have_current && info.dmPelsWidth==current.dmPelsWidth && info.dmPelsHeight==current.dmPelsHeight && info.dmDisplayFrequency==current.dmDisplayFrequency)
                                monitor.desktop_settings.mode = &modes.back();
                }
+
+               monitor.current_settings = monitor.desktop_settings;
        }
 }