Make window_event_list use Coords for moved and cursor (#10258)

This commit is contained in:
Tulio Leao authored and Michael Steenbeek committed 2019-11-18 23:13:32 +01:00
1 parent 5bfe31ceb9
commit 9fa355cb8c
5 files changed
+23 -22

No files matched your search

+2 -2
View File
@@ -1526,14 +1526,14 @@ int32_t window_event_cursor_call(rct_window* w, rct_widgetindex widgetIndex, Scr
{
int32_t cursorId = CURSOR_ARROW;
if (w->event_handlers->cursor != nullptr)
w->event_handlers->cursor(w, widgetIndex, screenCoords.x, screenCoords.y, &cursorId);
w->event_handlers->cursor(w, widgetIndex, screenCoords, &cursorId);
return cursorId;
}
void window_event_moved_call(rct_window* w, ScreenCoordsXY screenCoords)
{
if (w->event_handlers->moved != nullptr)
w->event_handlers->moved(w, screenCoords.x, screenCoords.y);
w->event_handlers->moved(w, screenCoords);
}
void window_event_invalidate_call(rct_window* w)