diff -r 0bab25144829 -r d228e8ce6fcf window.c --- a/window.c Fri Nov 04 12:58:18 2005 +0000 +++ b/window.c Fri Nov 04 14:01:44 2005 +0000 @@ -23,7 +23,8 @@ InvalidateWidget(w, widget); } -void DispatchLeftClickEvent(Window *w, int x, int y) { +static void DispatchLeftClickEvent(Window* w, int x, int y) +{ WindowEvent e; const Widget *wi; @@ -83,7 +84,8 @@ w->wndproc(w, &e); } -void DispatchRightClickEvent(Window *w, int x, int y) { +static void DispatchRightClickEvent(Window* w, int x, int y) +{ WindowEvent e; /* default tooltips handler? */ @@ -110,7 +112,7 @@ * @param widget the widget where the scrollwheel was used * @param wheel scroll up or down */ -void DispatchMouseWheelEvent(Window *w, int widget, int wheel) +static void DispatchMouseWheelEvent(Window* w, int widget, int wheel) { const Widget *wi1, *wi2; Scrollbar *sb; @@ -373,7 +375,7 @@ } } -bool IsWindowOfPrototype(Window *w, const Widget *widget) +bool IsWindowOfPrototype(const Window* w, const Widget* widget) { return (w->original_widget == widget); } @@ -872,6 +874,9 @@ return true; } + +static bool _dragging_window; + static bool HandleWindowDragging(void) { Window *w; @@ -1291,7 +1296,7 @@ * @param wparam Specifies additional message-specific information * @param lparam Specifies additional message-specific information */ -void SendWindowMessageW(Window *w, uint msg, uint wparam, uint lparam) +static void SendWindowMessageW(Window* w, uint msg, uint wparam, uint lparam) { WindowEvent e; @@ -1557,7 +1562,7 @@ } } -void InvalidateWidget(Window *w, byte widget_index) +void InvalidateWidget(const Window* w, byte widget_index) { const Widget *wi = &w->widget[widget_index];