mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Fix assertion when resizing tinydisplay window to fullscreen on X11
This commit is contained in:
parent
a359ef8a0b
commit
82f7813927
@ -514,8 +514,8 @@ set_properties_now(WindowProperties &properties) {
|
||||
XRRScreenSize *xrrs;
|
||||
xrrs = XRRSizes(_display, 0, &num_sizes);
|
||||
for (int i = 0; i < num_sizes; ++i) {
|
||||
if (xrrs[i].width == properties.get_x_size() &&
|
||||
xrrs[i].height == properties.get_y_size()) {
|
||||
if (xrrs[i].width == reqsizex &&
|
||||
xrrs[i].height == reqsizey) {
|
||||
new_size_id = i;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user