mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
add resize dbg spew
This commit is contained in:
parent
c4c936152e
commit
2e0885688e
@ -1073,10 +1073,10 @@ BOOL WINAPI DriverEnumCallback( GUID* pGUID, TCHAR* strDesc,TCHAR* strName,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wdxGraphicsWindow::resize(unsigned int xsize,unsigned int ysize) {
|
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 (!_props._fullscreen) {
|
||||||
|
if(wdxdisplay_cat.is_debug())
|
||||||
|
wdxdisplay_cat.debug() << "resize("<<xsize<<","<<ysize<<") called\n";
|
||||||
// is this enough?
|
// is this enough?
|
||||||
SetWindowPos(_mwindow, NULL, 0,0, xsize, ysize, SWP_NOZORDER | SWP_NOMOVE | SWP_NOSENDCHANGING);
|
SetWindowPos(_mwindow, NULL, 0,0, xsize, ysize, SWP_NOZORDER | SWP_NOMOVE | SWP_NOSENDCHANGING);
|
||||||
// WM_ERASEBKGND will be ignored, because _WindowAdjustingType!=NotAdjusting because
|
// WM_ERASEBKGND will be ignored, because _WindowAdjustingType!=NotAdjusting because
|
||||||
@ -1090,6 +1090,9 @@ void wdxGraphicsWindow::resize(unsigned int xsize,unsigned int ysize) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(wdxdisplay_cat.is_info())
|
||||||
|
wdxdisplay_cat.info() << "resize("<<xsize<<","<<ysize<<") called\n";
|
||||||
|
|
||||||
_dxgsg->SetDXReady(false);
|
_dxgsg->SetDXReady(false);
|
||||||
|
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user