summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-13 22:51:31 +0000
committerrubidium <rubidium@openttd.org>2009-05-13 22:51:31 +0000
commit9dff385c3841cbb894058de2ac018bfcb7e53fd9 (patch)
tree6111f16fe30ae0e5ece7014fc7d9c35f2d8fbc30 /src
parent32ecc48ec885b529bedc764b49a9626a9311cdd0 (diff)
downloadopenttd-9dff385c3841cbb894058de2ac018bfcb7e53fd9.tar.xz
(svn r16304) -Codechange: remove some magic numbers from the newgrf add window so it mirrors nicely.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 485464e53..47a5e91a8 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -165,8 +165,8 @@ struct NewGRFAddWindow : public Window {
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;
}
}