DXGL r715 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r714‎ | r715 | r716 >
Date:23:52, 11 June 2017
Author:admin
Status:new
Tags:
Comment:
Remove logic from DXGL Test that made the fullscreen test window topmost in release builds.
Modified paths:
  • /dxgltest/Tests2D.cpp (modified) (history)
  • /dxgltest/Tests3D.cpp (modified) (history)

Diff [purge]

Index: dxgltest/Tests2D.cpp
@@ -318,13 +318,8 @@
319319 else if(!fullscreen)
320320 hWnd = CreateWindowEx(WS_EX_APPWINDOW,wndclassname2d,_T("DDraw Test Window"),WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX,
321321 CW_USEDEFAULT,CW_USEDEFAULT,width,height,NULL,NULL,hinstance,NULL);
322 -#ifdef _DEBUG
323322 else hWnd = CreateWindowEx(0,wndclassname2d,_T("DDraw Test Window"),WS_POPUP,0,0,
324323 GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
325 -#else
326 - else hWnd = CreateWindowEx(WS_EX_TOPMOST,wndclassname2d,_T("DDraw Test Window"),WS_POPUP,0,0,
327 - GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
328 -#endif
329324 DWORD err = GetLastError();
330325 ShowWindow(hWnd,SW_SHOWNORMAL);
331326 UpdateWindow(hWnd);
Index: dxgltest/Tests3D.cpp
@@ -401,13 +401,8 @@
402402 else if(!fullscreen)
403403 hWnd = CreateWindowEx(WS_EX_APPWINDOW,wndclassname3d,_T("D3D Test Window"),WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX,
404404 CW_USEDEFAULT,CW_USEDEFAULT,width,height,NULL,NULL,hinstance,NULL);
405 -#ifdef _DEBUG
406405 else hWnd = CreateWindowEx(0,wndclassname3d,_T("DDraw Test Window"),WS_POPUP,0,0,
407406 GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
408 -#else
409 - else hWnd = CreateWindowEx(WS_EX_TOPMOST,wndclassname3d,_T("DDraw Test Window"),WS_POPUP,0,0,
410 - GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
411 -#endif
412407 DWORD err = GetLastError();
413408 ShowWindow(hWnd,SW_SHOWNORMAL);
414409 UpdateWindow(hWnd);