mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
add warning
This commit is contained in:
parent
4ccc65fa91
commit
6df8489124
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user