From a014ef63402b1166eb0fd6bc25fbc8dda39b6731 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 8 Jul 2005 00:14:19 +0000 Subject: (svn r2530) - Fix: [ 1219829 ] Mouse-wheel crashes OTTD. Widget detection failed to detect the most-right and most-bottom pixels of a widget. If scrollwheel is used on a not-found widget (such as the background of the toolbar), it will now fail correctly (glx) --- window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window.h') diff --git a/window.h b/window.h index 145137eb4..25a0c6c90 100644 --- a/window.h +++ b/window.h @@ -546,7 +546,7 @@ enum WindowFlags { void DispatchLeftClickEvent(Window *w, int x, int y); void DispatchRightClickEvent(Window *w, int x, int y); -void DispatchMouseWheelEvent(Window *w, uint widget, int wheel); +void DispatchMouseWheelEvent(Window *w, int widget, int wheel); /* window.c */ void DrawOverlappedWindow(Window *w, int left, int top, int right, int bottom); -- cgit v1.2.3-54-g00ecf