From: Mikko Rasa Date: Thu, 6 Jun 2019 09:29:49 +0000 (+0300) Subject: Initialize monitor.current_settings on Windows X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b397d792478fe965f8a608e84c32d6764fe7a07c;p=libs%2Fgui.git Initialize monitor.current_settings on Windows --- diff --git a/source/graphics/windows/display.cpp b/source/graphics/windows/display.cpp index 2364f6d..61fe983 100644 --- a/source/graphics/windows/display.cpp +++ b/source/graphics/windows/display.cpp @@ -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; } }