DXGL r644 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r643‎ | r644 | r645 >
Date:02:08, 21 January 2016
Author:admin
Status:new
Tags:
Comment:
Only hook WM_SIZE in fullscreen and borderless modes if a scaled mode is selected in dxglcfg
Modified paths:
  • /ddraw/hooks.c (modified) (history)

Diff [purge]

Index: ddraw/hooks.c
@@ -380,7 +380,7 @@
381381 case WM_SIZE:
382382 if (wParam != SIZE_MINIMIZED)
383383 {
384 - if (((dxglcfg.fullmode == 0) || (dxglcfg.fullmode == 1)) && lpDD7)
 384+ if (((dxglcfg.fullmode == 0) || (dxglcfg.fullmode == 1)) && lpDD7 && (dxglcfg.scaler != 0))
385385 {
386386 glDirectDraw7_GetSizes(lpDD7, sizes);
387387 if ((LOWORD(lParam) == sizes[4]) && (HIWORD(lParam) == sizes[5])) break;