Index: dxgltest/Tests2D.cpp |
— | — | @@ -331,9 +331,13 @@ |
332 | 332 | else if(!fullscreen)
|
333 | 333 | hWnd = CreateWindowEx(WS_EX_APPWINDOW,wndclassname2d,_T("DDraw Test Window"),WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX,
|
334 | 334 | 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
|
335 | 339 | else hWnd = CreateWindowEx(WS_EX_TOPMOST,wndclassname2d,_T("DDraw Test Window"),WS_POPUP,0,0,
|
336 | 340 | GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),NULL,NULL,hinstance,NULL);
|
337 | | -
|
| 341 | +#endif
|
338 | 342 | DWORD err = GetLastError();
|
339 | 343 | ShowWindow(hWnd,SW_SHOWNORMAL);
|
340 | 344 | UpdateWindow(hWnd);
|
Index: dxgltest/Tests3D.cpp |
— | — | @@ -243,9 +243,13 @@ |
244 | 244 | else if(!fullscreen)
|
245 | 245 | hWnd = CreateWindowEx(WS_EX_APPWINDOW,wndclassname3d,_T("D3D Test Window"),WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX,
|
246 | 246 | 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,
|
248 | 249 | 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
|
250 | 254 | DWORD err = GetLastError();
|
251 | 255 | ShowWindow(hWnd,SW_SHOWNORMAL);
|
252 | 256 | UpdateWindow(hWnd);
|