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:
parent
7e7f257c10
commit
004420af8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue