diff options
author | frosch <frosch@openttd.org> | 2010-09-02 19:34:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-02 19:34:44 +0000 |
commit | 48d8f16653a7ba67815010e5de4e79f97e2f4c4b (patch) | |
tree | f98087af69e07e93cb5c8c951c37094797287863 /src/statusbar_gui.cpp | |
parent | 5e258efe6becf3e106fcea46b1f454cbc52820aa (diff) | |
download | openttd-48d8f16653a7ba67815010e5de4e79f97e2f4c4b.tar.xz |
(svn r20719) -Codechange: Remove some hardcoded iconsizes.
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r-- | src/statusbar_gui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index a8b142498..7c4849faf 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -180,7 +180,10 @@ struct StatusBarWindow : Window { } } - if (this->reminder_timeout > 0) DrawSprite(SPR_BLOT, PALETTE_TO_RED, r.right - WD_FRAMERECT_RIGHT - 10, r.top + WD_FRAMERECT_TOP + 1); + if (this->reminder_timeout > 0) { + Dimension icon_size = GetSpriteSize(SPR_BLOT); + DrawSprite(SPR_BLOT, PALETTE_TO_RED, r.right - WD_FRAMERECT_RIGHT - icon_size.width, r.top + WD_FRAMERECT_TOP + (FONT_HEIGHT_NORMAL - icon_size.height) / 2); + } break; } } |