Mercurial > hg > openttd
changeset 11904:c8497b369ab7 draft
(svn r16304) -Codechange: remove some magic numbers from the newgrf add window so it mirrors nicely.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 13 May 2009 22:51:31 +0000 |
parents | c40e241e65ba |
children | fe3085dd504b |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -165,8 +165,8 @@ const char *text = (c->name != NULL && !StrEmpty(c->name)) ? c->name : c->filename; /* Draw selection background */ - if (h) GfxFillRect(3, y, this->width - 15, y + 9, 156); - DrawString(4, this->width - 22, y, text, h ? TC_WHITE : TC_ORANGE); + if (h) GfxFillRect(this->widget[ANGRFW_GRF_LIST].left + 1, y, this->widget[ANGRFW_GRF_LIST].right, y + 9, 156); + DrawString(this->widget[ANGRFW_GRF_LIST].left + 2, this->widget[ANGRFW_GRF_LIST].right - 2, y, text, h ? TC_WHITE : TC_ORANGE); y += 10; } }