summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-11-15 19:18:19 +0000
committerpeter1138 <peter1138@openttd.org>2009-11-15 19:18:19 +0000
commit31f7df2cb05ad5271b4f925f4dd38376006ebcfa (patch)
treec501b5c215e94c472997c571129096e4cc0c0eb9 /src
parent8e936f2b955585aaf041b42a24f44569769a0dea (diff)
downloadopenttd-31f7df2cb05ad5271b4f925f4dd38376006ebcfa.tar.xz
(svn r18106) -Codechange: Draw string underline FONT_HEIGHT_NORMAL pixels down, not 10.
Diffstat (limited to 'src')
-rw-r--r--src/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 062ef34f1..042148b8b 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -557,7 +557,7 @@ static int DrawString(int left, int right, int top, char *str, const char *last,
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]);
}
}