changeset 9892:89b597799b87 draft

(svn r14040) -Codechange:Remove a hard coded value that is not even representative, since captions have their own encoded colours in string.
author belugas <belugas@openttd.org>
date Mon, 11 Aug 2008 16:31:36 +0000
parents 95fb811fb1d3
children b902c0851258
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -479,7 +479,7 @@
 				GfxFillRect(r.left + 2, r.top + 2, r.right - 2, r.bottom - 2, _colour_gradient[_player_colors[this->caption_color]][4]);
 			}
 
-			DrawStringCenteredTruncated(r.left + 2, r.right - 2, r.top + 2, wi->data, 0x84);
+			DrawStringCenteredTruncated(r.left + 2, r.right - 2, r.top + 2, wi->data, TC_FROMSTRING);
 			break;
 
 		case WWT_DROPDOWN: {