X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fwindows%2Fdisplay.cpp;h=fdae09e362e5abe25c8c29d34a5380d351a6b1ae;hb=f438f4d467fa96e1b484f70e25dc1d6389170393;hp=4c893335c9ec06cd3fafbef01f5c7618c482159e;hpb=eb81125a81735eceef4a8be54a0bafcae6901e18;p=libs%2Fgui.git diff --git a/source/graphics/windows/display.cpp b/source/graphics/windows/display.cpp index 4c89333..fdae09e 100644 --- a/source/graphics/windows/display.cpp +++ b/source/graphics/windows/display.cpp @@ -67,7 +67,11 @@ void Display::set_mode(const VideoMode &requested_mode, bool) throw unsupported_video_mode(requested_mode); DEVMODE info; + info.dmDeviceName[0] = 0; + info.dmSpecVersion = DM_SPECVERSION; + info.dmDriverVersion = 0; info.dmSize = sizeof(DEVMODE); + info.dmDriverExtra = 0; info.dmFields = DM_PELSWIDTH|DM_PELSHEIGHT; info.dmPelsWidth = mode->width; info.dmPelsHeight = mode->height; @@ -91,6 +95,7 @@ bool Display::process_events() MSG msg; if(PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { + TranslateMessage(&msg); DispatchMessage(&msg); return true; }