From 21aa93c1681c03a72dd595b81e7f3c31ab3652a7 Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 14 Dec 2012 17:13:25 +0000 Subject: [PATCH] Limit attempting to toggle DWM off when using OpenGL modes to Vista/7, because Windows 8 no longer supports disabling DWM. Apparently, Windows 8 contains a software DWM renderer, and all of the "Metro" bs is directly tied to DWM, so there is no longer a way for an app to disable it at will. git-svn-id: https://svn.eduke32.com/eduke32@3283 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/winbits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/winbits.c b/polymer/eduke32/build/src/winbits.c index dfa528d9e..f035f86bd 100644 --- a/polymer/eduke32/build/src/winbits.c +++ b/polymer/eduke32/build/src/winbits.c @@ -215,7 +215,7 @@ void win_init(void) void win_setvideomode(int32_t c) { - if (osv.dwMajorVersion >= 6) + if (osv.dwMajorVersion >= 6 && osv.dwMinorVersion < 2) ToggleDesktopComposition(c < 16); }