changeset 13582:1f81064e4b37 draft

(svn r18106) -Codechange: Draw string underline FONT_HEIGHT_NORMAL pixels down, not 10.
author peter1138 <peter1138@openttd.org>
date Sun, 15 Nov 2009 19:18:19 +0000
parents 1afdcd67e460
children 52ce9c06ee36
files src/gfx.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -557,7 +557,7 @@
 
 		ReallyDoDrawString(to_draw, left, top, colour, !truncate);
 		if (underline) {
-			GfxFillRect(left, top + 10, right, top + 10, _string_colourremap[1]);
+			GfxFillRect(left, top + FONT_HEIGHT_NORMAL, right, top + FONT_HEIGHT_NORMAL, _string_colourremap[1]);
 		}
 	}