Mercurial > hg > openttd
changeset 17920:e6f389ce78a7 draft
(svn r22725) -Fix: Always draw NewGRF supplied texts with a default colour.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 06 Aug 2011 13:56:27 +0000 |
parents | 0e5500ee26c0 |
children | b7b66cf219d3 |
files | src/industry_gui.cpp src/object_gui.cpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -792,7 +792,7 @@ /* Use all the available space left from where we stand up to the * end of the window. We ALSO enlarge the window if needed, so we * can 'go' wild with the bottom of the window. */ - y = DrawStringMultiLine(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, y, UINT16_MAX, message); + y = DrawStringMultiLine(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, y, UINT16_MAX, message, TC_BLACK); StopTextRefStackUsage(); } }
--- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -240,7 +240,7 @@ /* Use all the available space left from where we stand up to the * end of the window. We ALSO enlarge the window if needed, so we * can 'go' wild with the bottom of the window. */ - int y = DrawStringMultiLine(r.left, r.right, r.top, UINT16_MAX, message) - r.top; + int y = DrawStringMultiLine(r.left, r.right, r.top, UINT16_MAX, message, TC_ORANGE) - r.top; StopTextRefStackUsage(); if (y > this->info_height) { BuildObjectWindow *bow = const_cast<BuildObjectWindow *>(this);