1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 18:09:09 +00:00

(svn r18261) -Codechange: center the company icons in the toolbar dropdowns

This commit is contained in:
rubidium
2009-11-23 20:14:42 +00:00
parent b351de15d9
commit fb168e25ad

View File

@@ -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);