mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Explicitly resizing window does not trigger event on OS X; do it ourselves
This commit is contained in:
parent
176606ef15
commit
8746fd2252
@ -807,6 +807,11 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
cocoadisplay_cat.debug()
|
cocoadisplay_cat.debug()
|
||||||
<< "Setting size to " << width << ", " << height << "\n";
|
<< "Setting size to " << width << ", " << height << "\n";
|
||||||
|
|
||||||
|
// Cocoa doesn't send an event, and the other
|
||||||
|
// resize-window handlers will do nothing once the properties
|
||||||
|
// have been changed, so do this now
|
||||||
|
set_size_and_recalc(width, height);
|
||||||
|
|
||||||
_context_needs_update = true;
|
_context_needs_update = true;
|
||||||
properties.clear_size();
|
properties.clear_size();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user