mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-26 22:05:36 +01:00
(svn r18261) -Codechange: center the company icons in the toolbar dropdowns
This commit is contained in:
parent
b351de15d9
commit
fb168e25ad
@ -167,7 +167,7 @@ public:
|
|||||||
/* It's possible the company is deleted while the dropdown is open */
|
/* It's possible the company is deleted while the dropdown is open */
|
||||||
if (!Company::IsValidID(company)) return;
|
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(0, company);
|
||||||
SetDParam(1, company);
|
SetDParam(1, company);
|
||||||
|
Loading…
Reference in New Issue
Block a user