mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Fix window-resizing regression on Windows
This commit is contained in:
parent
9b747b525e
commit
095a402853
@ -752,8 +752,8 @@ handle_reshape() {
|
|||||||
// _props origin should reflect upper left of view rectangle
|
// _props origin should reflect upper left of view rectangle
|
||||||
properties.set_origin(view_rect.left, view_rect.top);
|
properties.set_origin(view_rect.left, view_rect.top);
|
||||||
|
|
||||||
if (windisplay_cat.is_spam()) {
|
if (windisplay_cat.is_debug()) {
|
||||||
windisplay_cat.spam()
|
windisplay_cat.debug()
|
||||||
<< "reshape to origin: (" << properties.get_x_origin() << ","
|
<< "reshape to origin: (" << properties.get_x_origin() << ","
|
||||||
<< properties.get_y_origin() << "), size: (" << properties.get_x_size()
|
<< properties.get_y_origin() << "), size: (" << properties.get_x_size()
|
||||||
<< "," << properties.get_y_size() << ")\n";
|
<< "," << properties.get_y_size() << ")\n";
|
||||||
@ -1488,7 +1488,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Resist calling handle_reshape before the window has opened.
|
// Resist calling handle_reshape before the window has opened.
|
||||||
if (_hWnd == NULL) {
|
if (_hWnd != NULL) {
|
||||||
handle_reshape();
|
handle_reshape();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user