Browse Source

add resize dbg spew

cxgeorge 24 years ago
parent
commit
2e0885688e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      panda/src/wdxdisplay/wdxGraphicsWindow.cxx

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

@@ -1073,10 +1073,10 @@ BOOL WINAPI DriverEnumCallback( GUID* pGUID, TCHAR* strDesc,TCHAR* strName,
 }
 
 void wdxGraphicsWindow::resize(unsigned int xsize,unsigned int ysize) {
-   if(wdxdisplay_cat.is_debug())
-      wdxdisplay_cat.debug() << "resize("<<xsize<<","<<ysize<<") called\n";
 
    if (!_props._fullscreen) {
+       if(wdxdisplay_cat.is_debug())
+           wdxdisplay_cat.debug() << "resize("<<xsize<<","<<ysize<<") called\n";
         // is this enough?
         SetWindowPos(_mwindow, NULL, 0,0, xsize, ysize, SWP_NOZORDER | SWP_NOMOVE | SWP_NOSENDCHANGING);
         // WM_ERASEBKGND will be ignored, because _WindowAdjustingType!=NotAdjusting because 
@@ -1090,6 +1090,9 @@ void wdxGraphicsWindow::resize(unsigned int xsize,unsigned int ysize) {
         return;
    }
 
+   if(wdxdisplay_cat.is_info())
+      wdxdisplay_cat.info() << "resize("<<xsize<<","<<ysize<<") called\n";
+
    _dxgsg->SetDXReady(false);
 
    HRESULT hr;