From b397d792478fe965f8a608e84c32d6764fe7a07c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 6 Jun 2019 12:29:49 +0300 Subject: [PATCH] Initialize monitor.current_settings on Windows --- source/graphics/windows/display.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.45.2