1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #2754: Dragging scrollview fails when scaled

This commit is contained in:
Josue Acevedo
2016-06-19 07:15:39 -05:00
committed by Ted John
parent 97fedab37f
commit 5e5ec75eea

View File

@@ -253,7 +253,11 @@ static void input_scroll_drag_continue(int x, int y, rct_window* w)
widget_scroll_update_thumbs(w, widgetIndex);
window_invalidate_by_number(w->classification, w->number);
platform_set_cursor_position(gInputDragLastX, gInputDragLastY);
int fixedCursorPositionX = (int) ceilf(gInputDragLastX * gConfigGeneral.window_scale);
int fixedCursorPositionY = (int) ceilf(gInputDragLastY * gConfigGeneral.window_scale);
platform_set_cursor_position(fixedCursorPositionX, fixedCursorPositionY);
}
/**