Fix assertion when resizing tinydisplay window to fullscreen on X11

This commit is contained in:
rdb 2015-08-20 21:12:28 +02:00
parent a359ef8a0b
commit 82f7813927

View File

@ -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;
}
}