diff options
author | glx <glx@openttd.org> | 2019-09-17 02:52:36 +0200 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-09-17 20:11:34 +0200 |
commit | 1f418555a13b63379e4ce52ec96cbed6e04dca7d (patch) | |
tree | 6f8166965fd7d560bf2d85ceaeeee1f32005ccf0 /src/widget_type.h | |
parent | ed6a427fcc2da79827fdb63d8a9945fcf2cd643e (diff) | |
download | openttd-1f418555a13b63379e4ce52ec96cbed6e04dca7d.tar.xz |
Fix #7742, 66dd7c3: widget position can be negative
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 9d1702488..6372ed799 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -174,8 +174,8 @@ public: uint current_x; ///< Current horizontal size (after resizing). uint current_y; ///< Current vertical size (after resizing). - uint pos_x; ///< Horizontal position of top-left corner of the widget in the window. - uint pos_y; ///< Vertical position of top-left corner of the widget in the window. + int pos_x; ///< Horizontal position of top-left corner of the widget in the window. + int pos_y; ///< Vertical position of top-left corner of the widget in the window. NWidgetBase *next; ///< Pointer to next widget in container. Managed by parent container widget. NWidgetBase *prev; ///< Pointer to previous widget in container. Managed by parent container widget. |