diff options
author | rubidium <rubidium@openttd.org> | 2009-03-22 14:55:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-22 14:55:49 +0000 |
commit | e75e1e62cb7e5cacb2abb522bb8bfbd67a125256 (patch) | |
tree | 425930cb2e5aff8c923901cc897b50e72158a7b0 /src/smallmap_gui.cpp | |
parent | 9038733f1aa4f3203b229ac6350833f5af5b016a (diff) | |
download | openttd-e75e1e62cb7e5cacb2abb522bb8bfbd67a125256.tar.xz |
(svn r15813) -Codechange: remove the last remnants of the old text drawing API.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 1d5c2baca..3efade6c6 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -738,7 +738,7 @@ public: y < dpi->top + dpi->height) { /* And draw it. */ SetDParam(0, t->index); - DrawString(x, y, STR_2056, TC_WHITE); + DrawString(x, x + t->sign.width_2, y, STR_2056, TC_WHITE); } } } @@ -857,15 +857,15 @@ public: if (!tbl->show_on_map) { /* Simply draw the string, not the black border of the legend colour. * This will enforce the idea of the disabled item */ - DrawString(x + 11, y, STR_SMALLMAP_INDUSTRY, TC_GREY); + DrawString(x + 11, x + COLUMN_WIDTH - 1, y, STR_SMALLMAP_INDUSTRY, TC_GREY); } else { - DrawString(x + 11, y, STR_SMALLMAP_INDUSTRY, TC_BLACK); + DrawString(x + 11, x + COLUMN_WIDTH - 1, y, STR_SMALLMAP_INDUSTRY, TC_BLACK); GfxFillRect(x, y + 1, x + 8, y + 5, 0); // outer border of the legend colour } } else { /* Anything that is not an industry is using normal process */ GfxFillRect(x, y + 1, x + 8, y + 5, 0); - DrawString(x + 11, y, tbl->legend, TC_FROMSTRING); + DrawString(x + 11, x + COLUMN_WIDTH - 1, y, tbl->legend, TC_FROMSTRING); } GfxFillRect(x + 1, y + 2, x + 7, y + 4, tbl->colour); // legend colour |