diff options
author | rubidium <rubidium@openttd.org> | 2009-11-19 22:49:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-19 22:49:04 +0000 |
commit | da25f121ac8cfda351cade27380a9a96b774debc (patch) | |
tree | 549c3bbec8a247ecdd146a5ae6727f403181168d /src/window_gui.h | |
parent | e43659440e2653e0fe7acd29025063389cefacc6 (diff) | |
download | openttd-da25f121ac8cfda351cade27380a9a96b774debc.tar.xz |
(svn r18195) -Codechange: move the child padding calculation/handling to WWT_FRAME
-Fix (r18168): crash when switching languages when a non-standard font height is used
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 2ff13c5da..d0e0f48a2 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -60,11 +60,13 @@ enum WidgetDrawDistances { /* Extra space at top/bottom of text panels */ WD_TEXTPANEL_TOP = 6, ///< Offset at top to draw above the text - WD_TEXTPANEL_BOTTOM = 6, ///< Offset at bottom to draw below the text + WD_TEXTPANEL_BOTTOM = 6, ///< Offset at bottom to draw below the text /* WWT_FRAME */ - WD_FRAMETEXT_LEFT = 6, ///< Left offset of the text of the frame. - WD_FRAMETEXT_RIGHT = 6, ///< Right offset of the text of the frame. + WD_FRAMETEXT_LEFT = 6, ///< Left offset of the text of the frame. + WD_FRAMETEXT_RIGHT = 6, ///< Right offset of the text of the frame. + WD_FRAMETEXT_TOP = 6, ///< Top offset of the text of the frame + WD_FRAMETEXT_BOTTOM = 6, ///< Bottom offset of the text of the frame /* WWT_MATRIX */ WD_MATRIX_LEFT = 2, ///< Offset at left of a matrix cell. |