mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix issues with resizing fullscreen windows
This commit is contained in:
parent
da7c1e8a10
commit
969e962ed8
@ -566,6 +566,7 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
|
|
||||||
// And mark the window closed.
|
// And mark the window closed.
|
||||||
_properties.set_open(false);
|
_properties.set_open(false);
|
||||||
|
_is_valid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -437,6 +437,10 @@ handle_reshape() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
bool wdxGraphicsWindow8::
|
bool wdxGraphicsWindow8::
|
||||||
do_fullscreen_resize(int x_size, int y_size) {
|
do_fullscreen_resize(int x_size, int y_size) {
|
||||||
|
if (!WinGraphicsWindow::do_fullscreen_resize(x_size, y_size)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool bCouldntFindValidZBuf;
|
bool bCouldntFindValidZBuf;
|
||||||
D3DFORMAT pixFmt;
|
D3DFORMAT pixFmt;
|
||||||
bool bNeedZBuffer = (_wcontext._presentation_params.EnableAutoDepthStencil != false);
|
bool bNeedZBuffer = (_wcontext._presentation_params.EnableAutoDepthStencil != false);
|
||||||
|
@ -436,6 +436,10 @@ handle_reshape() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
bool wdxGraphicsWindow9::
|
bool wdxGraphicsWindow9::
|
||||||
do_fullscreen_resize(int x_size, int y_size) {
|
do_fullscreen_resize(int x_size, int y_size) {
|
||||||
|
if (!WinGraphicsWindow::do_fullscreen_resize(x_size, y_size)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool bCouldntFindValidZBuf;
|
bool bCouldntFindValidZBuf;
|
||||||
D3DFORMAT pixFmt;
|
D3DFORMAT pixFmt;
|
||||||
bool bNeedZBuffer = (_wcontext._presentation_params.EnableAutoDepthStencil != false);
|
bool bNeedZBuffer = (_wcontext._presentation_params.EnableAutoDepthStencil != false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user