Fix #2079. Scroll windows no longer have incorrect tooltips

There was an issue with forgetting to reset the x/y variable introduced when I fixed a different bug. Possibly fixes #2136
This commit is contained in:
duncanspumpkin committed 2015-11-01 20:55:54 +00:00
1 parent 428613a804
commit f1cdc99afc
1 file changed
+7 -2
+7 -2
View File
@@ -1036,14 +1036,19 @@ void process_mouse_over(int x, int y)
RCT2_GLOBAL(0x9DE558, uint16) = x;
RCT2_GLOBAL(0x9DE55A, uint16) = y;
int output_scroll_area, scroll_id;
widget_scroll_get_part(window, &window->widgets[widgetId], x, y, &x, &y, &output_scroll_area, &scroll_id);
int scroll_x, scroll_y;
widget_scroll_get_part(window, &window->widgets[widgetId], x, y, &scroll_x, &scroll_y, &output_scroll_area, &scroll_id);
cursorId = scroll_id;
if (output_scroll_area != SCROLL_PART_VIEW)
{
cursorId = CURSOR_ARROW;
break;
}
//Fall through to default
// Same as default but with scroll_x/y
cursorId = window_event_cursor_call(window, widgetId, scroll_x, scroll_y);
if (cursorId == -1)
cursorId = CURSOR_ARROW;
break;
default:
cursorId = window_event_cursor_call(window, widgetId, x, y);
if (cursorId == -1)