diff options
author | frosch <frosch@openttd.org> | 2013-08-18 15:32:45 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-08-18 15:32:45 +0000 |
commit | 59b7125563e022036547d0816a1a56f475c5245d (patch) | |
tree | e2148fd90a9c5fa8c9a853eee9ccb3f091a7baab /src/widget_type.h | |
parent | 4fc6cdfbea34bd26318e67c1e9cd5c25ff0b952d (diff) | |
download | openttd-59b7125563e022036547d0816a1a56f475c5245d.tar.xz |
(svn r25727) -Fix [FS#5686]: NWidgetMatrix used pip_pre and pip_post inconsistently and incorrectly, causing misalignment for RTL. (spotted by sbr)
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 793f93b71..60980f28c 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -181,9 +181,9 @@ public: NWidgetBase *prev; ///< Pointer to previous widget in container. Managed by parent container widget. uint8 padding_top; ///< Paddings added to the top of the widget. Managed by parent container widget. - uint8 padding_right; ///< Paddings added to the right of the widget. Managed by parent container widget. + uint8 padding_right; ///< Paddings added to the right of the widget. Managed by parent container widget. (parent container may swap this with padding_left for RTL) uint8 padding_bottom; ///< Paddings added to the bottom of the widget. Managed by parent container widget. - uint8 padding_left; ///< Paddings added to the left of the widget. Managed by parent container widget. + uint8 padding_left; ///< Paddings added to the left of the widget. Managed by parent container widget. (parent container may swap this with padding_right for RTL) protected: inline void StoreSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height); |