diff options
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 2558336f6..e45f74501 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -171,7 +171,7 @@ struct NewGRFAddWindow : public Window { /* Draw selection background */ if (h) GfxFillRect(3, y, this->width - 15, y + 9, 156); - DoDrawStringTruncated(text, 4, y, h ? TC_WHITE : TC_ORANGE, this->width - 18); + DrawString(4, this->width - 22, y, text, h ? TC_WHITE : TC_ORANGE); y += 10; } } @@ -448,7 +448,7 @@ struct NewGRFWindow : public Window { DrawSprite(SPR_SQUARE, pal, 5, y + 2); if (c->error != NULL) DrawSprite(SPR_WARNING_SIGN, 0, 20, y + 2); txtoffset = c->error != NULL ? 35 : 25; - DoDrawStringTruncated(text, txtoffset, y + 3, this->sel == c ? TC_WHITE : TC_BLACK, this->width - txtoffset - 10); + DrawString(txtoffset, this->widget[SNGRFS_FILE_LIST].right - 2, y + 3, text, this->sel == c ? TC_WHITE : TC_BLACK); y += 14; } } |