Fix error setting the initial window size with LIBDECOR on Wayland

Error in [0] with whole-number scaling.

[0]: f845a3992c
This commit is contained in:
Campbell Barton 2023-12-18 10:42:48 +11:00
parent 7e7f257c10
commit 004420af8f
1 changed files with 1 additions and 1 deletions

View File

@ -2415,7 +2415,7 @@ bool GHOST_WindowWayland::outputs_changed_update_scale()
double(fractional_scale_next));
}
else {
window_->frame_pending.size[i] = value / scale_prev;
size_next[i] = value / scale_prev;
}
if (window_->frame_pending.buffer_scale > 1) {
gwl_round_int_by(&size_next[i], window_->frame_pending.buffer_scale);