Close #12408: Refactor CURSOR_ID to use strong enum

This commit is contained in:
Julia Pinheiro authored and GitHub committed 2020-10-11 18:01:14 +02:00
1 parent f56039abfd
commit cba1d48226
25 files changed
+156 -150

No files matched your search

+2 -2
View File
@@ -1532,9 +1532,9 @@ OpenRCT2String window_event_tooltip_call(rct_window* w, const rct_widgetindex wi
}
}
int32_t window_event_cursor_call(rct_window* w, rct_widgetindex widgetIndex, const ScreenCoordsXY& screenCoords)
CursorID window_event_cursor_call(rct_window* w, rct_widgetindex widgetIndex, const ScreenCoordsXY& screenCoords)
{
int32_t cursorId = CURSOR_ARROW;
CursorID cursorId = CursorID::Arrow;
if (w->event_handlers->cursor != nullptr)
w->event_handlers->cursor(w, widgetIndex, screenCoords, &cursorId);
return cursorId;