add warning

This commit is contained in:
cxgeorge 2002-10-20 03:01:30 +00:00
parent 4ccc65fa91
commit 6df8489124
2 changed files with 37 additions and 33 deletions

View File

@ -2505,7 +2505,9 @@ CreateScreenBuffersAndDevice(DXScreenData &Display) {
// it changes your WM_ACTIVATEAPP from true to false, causing us
// to go into a 'wait-for WM_ACTIVATEAPP true' loop, and the event never comes so we hang
// in fullscreen wait. also doing this for windowed mode since it was requested.
SetForegroundWindow(Display.hWnd);
if(!SetForegroundWindow(Display.hWnd)) {
wdxdisplay_cat.warning() << "SetForegroundWindow() failed!\n";
}
if(_props._fullscreen) {
pPresParams->SwapEffect = D3DSWAPEFFECT_DISCARD; // we dont care about preserving contents of old frame

View File

@ -457,7 +457,9 @@ void wglGraphicsWindow::config() {
ShowWindow(_mwindow, SW_SHOWNORMAL);
ShowWindow(_mwindow, SW_SHOWNORMAL);
SetForegroundWindow(_mwindow);
if(!SetForegroundWindow(_mwindow)) {
wgldisplay_cat.warning() << "SetForegroundWindow() failed!\n";
}
int chg_result = ChangeDisplaySettings(&dm, CDS_FULLSCREEN);