diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-10-28 02:17:36 +0000 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-10-31 12:35:54 +0100 |
commit | f5b1115039e41d7f75f91e7355003f10dd01b352 (patch) | |
tree | c777655761bcdca584fe0ff5c2f0e87fc2ef14e8 /src/window.cpp | |
parent | b9273cbe07aa47daa8a9d2411062dfd7fead27de (diff) | |
download | openttd-f5b1115039e41d7f75f91e7355003f10dd01b352.tar.xz |
Doc: Lots and lots of doxymentation fixes
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp index d46447d52..d7911bfa4 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -49,7 +49,7 @@ enum ViewportAutoscrolling { }; static Point _drag_delta; ///< delta between mouse cursor and upper left corner of dragged window -static Window *_mouseover_last_w = NULL; ///< Window of the last #MOUSEOVER event. +static Window *_mouseover_last_w = NULL; ///< Window of the last OnMouseOver event. static Window *_last_scroll_window = NULL; ///< Window of the last scroll event. /** List of windows opened at the screen sorted from the front. */ @@ -1115,7 +1115,7 @@ Window *FindWindowById(WindowClass cls, WindowNumber number) /** * Find any window by its class. Useful when searching for a window that uses - * the window number as a #WindowType, like #WC_SEND_NETWORK_MSG. + * the window number as a #WindowClass, like #WC_SEND_NETWORK_MSG. * @param cls Window class * @return Pointer to the found window, or \c NULL if not available */ @@ -1430,7 +1430,6 @@ static void BringWindowToFront(Window *w) /** * Initializes the data (except the position and initial size) of a new Window. - * @param desc Window description. * @param window_number Number being assigned to the new window * @return Window pointer of the newly created window * @pre If nested widgets are used (\a widget is \c NULL), #nested_root and #nested_array_size must be initialized. @@ -2000,7 +1999,7 @@ static void HandleMouseOver() { Window *w = FindWindowFromPt(_cursor.pos.x, _cursor.pos.y); - /* We changed window, put a MOUSEOVER event to the last window */ + /* We changed window, put an OnMouseOver event to the last window */ if (_mouseover_last_w != NULL && _mouseover_last_w != w) { /* Reset mouse-over coordinates of previous window */ Point pt = { -1, -1 }; |