mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
force system_changed_size on window create
This commit is contained in:
parent
bf79792b6b
commit
d3fb15d016
@ -739,7 +739,16 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
properties.clear();
|
properties.clear();
|
||||||
|
|
||||||
if (_properties.get_open()) {
|
if (_properties.get_open()) {
|
||||||
if (!open_window()) {
|
if (open_window()) {
|
||||||
|
// When the window is first opened, force its size to be
|
||||||
|
// broadcast to its display regions.
|
||||||
|
Channels::iterator ci;
|
||||||
|
for (ci = _channels.begin(); ci != _channels.end(); ++ci) {
|
||||||
|
GraphicsChannel *chan = (*ci);
|
||||||
|
chan->window_resized(_properties.get_x_size(),
|
||||||
|
_properties.get_y_size());
|
||||||
|
}
|
||||||
|
} else {
|
||||||
_properties.set_open(false);
|
_properties.set_open(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -793,6 +802,12 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (properties.has_fullscreen() &&
|
||||||
|
properties.get_fullscreen() == _properties.get_fullscreen()) {
|
||||||
|
// Fullscreen property specified, but unchanged.
|
||||||
|
properties.clear_fullscreen();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user