diff options
author | alberth <alberth@openttd.org> | 2009-10-18 13:59:25 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-10-18 13:59:25 +0000 |
commit | f1e885e0d264b3ff7912f8b832e066bb5fe66689 (patch) | |
tree | 9313e5ec24b54704e6c6e95e6fd7411b2b43cd86 | |
parent | 00723e694f821306e058698ececfec47944ea3ae (diff) | |
download | openttd-f1e885e0d264b3ff7912f8b832e066bb5fe66689.tar.xz |
(svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text.
-rw-r--r-- | src/industry_gui.cpp | 4 | ||||
-rw-r--r-- | src/window_gui.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 8de8fdb9e..7e7d7de74 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -544,7 +544,7 @@ public: for (byte j = 0; j < lengthof(i->produced_cargo); j++) { if (i->produced_cargo[j] == CT_INVALID) continue; if (first) { - if (has_accept) y += 10; + if (has_accept) y += WD_PAR_VSEP_WIDE; DrawString(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, y, STR_INDUSTRY_VIEW_PRODUCTION_LAST_MONTH_TITLE); y += FONT_HEIGHT_NORMAL; this->production_offset_y = y; @@ -572,7 +572,7 @@ public: if (callback_res != CALLBACK_FAILED) { StringID message = GetGRFStringID(ind->grf_prop.grffile->grfid, 0xD000 + callback_res); if (message != STR_NULL && message != STR_UNDEFINED) { - y += 10; + y += WD_PAR_VSEP_WIDE; PrepareTextRefStackUsage(6); /* Use all the available space left from where we stand up to the diff --git a/src/window_gui.h b/src/window_gui.h index 4204ec9cd..4378b694a 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -115,7 +115,8 @@ enum WidgetDrawDistances { WD_SORTBUTTON_ARROW_WIDTH = 11, ///< Width of up/down arrow of sort button state. - WD_PAR_VSEP_NORMAL = 2, ///< Amount of vertical space between two paragraphs of text. + WD_PAR_VSEP_NORMAL = 2, ///< Normal amount of vertical space between two paragraphs of text. + WD_PAR_VSEP_WIDE = 8, ///< Large amount of vertical space between two paragraphs of text. }; /* wiget.cpp */ |