DXGL r158 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r157‎ | r158 | r159 >
Date:17:22, 4 June 2012
Author:admin
Status:new
Tags:
Comment:
Make dxgltest fullscreen window non-topmost in debug builds.
Modified paths:
  • /dxgltest/Tests2D.cpp (modified) (history)
  • /dxgltest/Tests3D.cpp (modified) (history)

Diff [purge]

Index: dxgltest/Tests2D.cpp
@@ -331,9 +331,13 @@
332332 else if(!fullscreen)
333333 hWnd = CreateWindowEx(WS_EX_APPWINDOW,wndclassname2d,_T("DDraw Test Window"),WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX,
334334 CW_USEDEFAULT,CW_USEDEFAULT,width,height,NULL,NULL,hinstance,NULL);
 335+#ifdef _DEBUG
 336+ else hWnd = CreateWindowEx(0,wndclassname2d,_T("DDraw Test Window"),WS_POPUP,0,0,
 337+ GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
 338+#else
335339 else hWnd = CreateWindowEx(WS_EX_TOPMOST,wndclassname2d,_T("DDraw Test Window"),WS_POPUP,0,0,
336340 GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
337 -
 341+#endif
338342 DWORD err = GetLastError();
339343 ShowWindow(hWnd,SW_SHOWNORMAL);
340344 UpdateWindow(hWnd);
Index: dxgltest/Tests3D.cpp
@@ -243,9 +243,13 @@
244244 else if(!fullscreen)
245245 hWnd = CreateWindowEx(WS_EX_APPWINDOW,wndclassname3d,_T("D3D Test Window"),WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX,
246246 CW_USEDEFAULT,CW_USEDEFAULT,width,height,NULL,NULL,hinstance,NULL);
247 - else hWnd = CreateWindowEx(WS_EX_TOPMOST,wndclassname3d,_T("D3D Test Window"),WS_POPUP,0,0,
 247+#ifdef _DEBUG
 248+ else hWnd = CreateWindowEx(0,wndclassname3d,_T("DDraw Test Window"),WS_POPUP,0,0,
248249 GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
249 -
 250+#else
 251+ else hWnd = CreateWindowEx(WS_EX_TOPMOST,wndclassname3d,_T("DDraw Test Window"),WS_POPUP,0,0,
 252+ GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
 253+#endif
250254 DWORD err = GetLastError();
251255 ShowWindow(hWnd,SW_SHOWNORMAL);
252256 UpdateWindow(hWnd);