diff options
author | rubidium <rubidium@openttd.org> | 2009-11-23 20:14:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-23 20:14:42 +0000 |
commit | fb168e25ad3cda86b0ce26f20aa34a4efdbde435 (patch) | |
tree | 70b33372b95fd4db7fb2ba3f0f29ed2d054834b2 | |
parent | b351de15d94bb3573637059f419f82abbf090b16 (diff) | |
download | openttd-fb168e25ad3cda86b0ce26f20aa34a4efdbde435.tar.xz |
(svn r18261) -Codechange: center the company icons in the toolbar dropdowns
-rw-r--r-- | src/toolbar_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 8872b2bec..d0cca882f 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -167,7 +167,7 @@ public: /* It's possible the company is deleted while the dropdown is open */ if (!Company::IsValidID(company)) return; - DrawCompanyIcon(company, rtl ? right - 16 : left + 2, top + 1); + DrawCompanyIcon(company, rtl ? right - 16 : left + 2, top + 1 + (FONT_HEIGHT_NORMAL - 10) / 2); SetDParam(0, company); SetDParam(1, company); |