Fix #109532: Added missing conversion from wl_fixed to int in Wayland
When blender is not focused and a selection is executed with the mouse, since there is no conversion from `wl_fixed` to `int`, the bounds of the selection can cause the selection box to be too large, causing `draw_select_framebuffer_depth_only_setup` to fail when create `g_select_buffer.texture_depth`. Ref !109834
This commit is contained in:
parent
b183e3ae89
commit
751db88748
|
@ -6097,8 +6097,8 @@ static GHOST_TSuccess getCursorPositionClientRelative_impl(
|
|||
y = wl_fixed_to_int(win->wl_fixed_to_window(xy_wrap[1]));
|
||||
}
|
||||
else {
|
||||
x = win->wl_fixed_to_window(seat_state_pointer->xy[0]);
|
||||
y = win->wl_fixed_to_window(seat_state_pointer->xy[1]);
|
||||
x = wl_fixed_to_int(win->wl_fixed_to_window(seat_state_pointer->xy[0]));
|
||||
y = wl_fixed_to_int(win->wl_fixed_to_window(seat_state_pointer->xy[1]));
|
||||
}
|
||||
|
||||
return GHOST_kSuccess;
|
||||
|
|
Loading…
Reference in New Issue