DXGL r639 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r638
|
r639
|
r640
>
Date:
21:44, 16 January 2016
Author:
admin
Status:
new
Tags:
Comment:
Don't auto-minimize window in forced fullscreen mode.
Modified paths:
/ddraw/hooks.c
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/hooks.c
—
—
@@ -19,8 +19,11 @@
20
20
#include "hooks.h"
21
21
#include <tlhelp32.h>
22
22
#include "../minhook-1.3/include/MinHook.h"
23
-void glDirectDraw7_UnrestoreDisplayMode(LPDIRECTDRAW7 lpDD7); // temporary until glDirectDraw is converted to C
24
23
24
+// temporary references to C++ C-linked stuff
25
+void glDirectDraw7_UnrestoreDisplayMode(LPDIRECTDRAW7 lpDD7);
26
+extern DXGLCFG dxglcfg;
27
+
25
28
const TCHAR *wndprop = _T("DXGLWndProc");
26
29
const TCHAR *wndpropdd7 = _T("DXGLWndDD7");
27
30
static HWND_HOOK *hwndhooks = NULL;
—
—
@@ -265,14 +268,17 @@
266
269
case WM_ACTIVATEAPP:
267
270
if (!wParam)
268
271
{
269
- ShowWindow(hWnd, SW_MINIMIZE);
270
- if (lpDD7) IDirectDraw7_SetDisplayMode(lpDD7, -1, -1, -1, -1, 0);
272
+ if (dxglcfg.fullmode < 2)
273
+ {
274
+ ShowWindow(hWnd, SW_MINIMIZE);
275
+ if (lpDD7) IDirectDraw7_SetDisplayMode(lpDD7, -1, -1, -1, -1, 0);
276
+ }
271
277
}
272
278
break;
273
279
case WM_SYSCOMMAND:
274
280
if (wParam == SC_RESTORE)
275
281
{
276
- if (lpDD7) glDirectDraw7_UnrestoreDisplayMode(lpDD7);
282
+ if (lpDD7 && (dxglcfg.fullmode < 2)) glDirectDraw7_UnrestoreDisplayMode(lpDD7);
277
283
}
278
284
break;
279
285
}
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version