mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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;
|
XRRScreenSize *xrrs;
|
||||||
xrrs = XRRSizes(_display, 0, &num_sizes);
|
xrrs = XRRSizes(_display, 0, &num_sizes);
|
||||||
for (int i = 0; i < num_sizes; ++i) {
|
for (int i = 0; i < num_sizes; ++i) {
|
||||||
if (xrrs[i].width == properties.get_x_size() &&
|
if (xrrs[i].width == reqsizex &&
|
||||||
xrrs[i].height == properties.get_y_size()) {
|
xrrs[i].height == reqsizey) {
|
||||||
new_size_id = i;
|
new_size_id = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user