Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
c336c328e7

+ 3 - 2
panda/src/wdxdisplay/wdxGraphicsWindow.cxx

@@ -1077,12 +1077,13 @@ void wdxGraphicsWindow::config(void) {
   RECT win_rect;
   RECT win_rect;
   SetRect(&win_rect, _props._xorg,  _props._yorg, _props._xorg + _props._xsize, 
   SetRect(&win_rect, _props._xorg,  _props._yorg, _props._xorg + _props._xsize, 
 				 _props._yorg + _props._ysize);
 				 _props._yorg + _props._ysize);
+  HWND desktop = GetDesktopWindow();
 
 
   // rect now contains the coords for the entire window, not the client
   // rect now contains the coords for the entire window, not the client
   if (dx_full_screen) {
   if (dx_full_screen) {
 	  _mwindow = CreateWindow("wdxDisplay", _props._title.c_str(),
 	  _mwindow = CreateWindow("wdxDisplay", _props._title.c_str(),
                               WS_POPUP, 0, 0, _props._xsize,_props._ysize,
                               WS_POPUP, 0, 0, _props._xsize,_props._ysize,
-                              NULL, NULL, hinstance, 0);
+                              desktop, NULL, hinstance, 0);
   } else  {
   } else  {
 	  if (_props._border)
 	  if (_props._border)
 		    style = WS_OVERLAPPEDWINDOW; 
 		    style = WS_OVERLAPPEDWINDOW; 
@@ -1098,7 +1099,7 @@ void wdxGraphicsWindow::config(void) {
 	  _mwindow = CreateWindow("wdxDisplay", _props._title.c_str(),
 	  _mwindow = CreateWindow("wdxDisplay", _props._title.c_str(),
 		style, win_rect.left, win_rect.top, win_rect.right-win_rect.left, 
 		style, win_rect.left, win_rect.top, win_rect.right-win_rect.left, 
 		win_rect.bottom-win_rect.top,
 		win_rect.bottom-win_rect.top,
-		NULL, NULL, hinstance, 0);
+		desktop, NULL, hinstance, 0);
   }
   }
 
 
   if (!_mwindow) {
   if (!_mwindow) {

+ 3 - 2
panda/src/wgldisplay/wglGraphicsWindow.cxx

@@ -504,6 +504,7 @@ void wglGraphicsWindow::config(void) {
 
 
   wglGraphicsPipe* pipe = DCAST(wglGraphicsPipe, _pipe);
   wglGraphicsPipe* pipe = DCAST(wglGraphicsPipe, _pipe);
   HINSTANCE hinstance = GetModuleHandle(NULL);
   HINSTANCE hinstance = GetModuleHandle(NULL);
+  HWND desktop = GetDesktopWindow();
 
 
   if (_props._fullscreen) {
   if (_props._fullscreen) {
     _props._xorg = 0;
     _props._xorg = 0;
@@ -513,7 +514,7 @@ void wglGraphicsWindow::config(void) {
     _mwindow = CreateWindow("wglFullscreen", _props._title.c_str(),
     _mwindow = CreateWindow("wglFullscreen", _props._title.c_str(),
                 WS_POPUP | WS_MAXIMIZE, 
                 WS_POPUP | WS_MAXIMIZE, 
 		_props._xorg, _props._yorg, _props._xsize, _props._ysize,
 		_props._xorg, _props._yorg, _props._xsize, _props._ysize,
-                NULL, NULL, hinstance, 0);
+                desktop, NULL, hinstance, 0);
   } else {
   } else {
 
 
     int xorg = _props._xorg;
     int xorg = _props._xorg;
@@ -529,7 +530,7 @@ void wglGraphicsWindow::config(void) {
 
 
     _mwindow = CreateWindow("wglStandard", _props._title.c_str(),
     _mwindow = CreateWindow("wglStandard", _props._title.c_str(),
                 style, xorg, yorg, xsize, ysize,
                 style, xorg, yorg, xsize, ysize,
-                NULL, NULL, hinstance, 0);
+                desktop, NULL, hinstance, 0);
   }
   }
 
 
   if (!_mwindow) {
   if (!_mwindow) {