summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2010-09-03 12:52:09 +0000
committerglx <glx@openttd.org>2010-09-03 12:52:09 +0000
commit72bd89b9005cb1dfaaba1c9aac0c6e94dec7a553 (patch)
tree7be62ba92dd3578382df29a81fb3fc1c627bbf47
parent29eae4a378d0b50c95d8195574ee096a251a8597 (diff)
downloadopenttd-72bd89b9005cb1dfaaba1c9aac0c6e94dec7a553.tar.xz
(svn r20722) -Fix (r20719): signed/unsigned side effect makes a small negative value become a big positive value
-rw-r--r--src/statusbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index 7f9afe8fa..021e73e52 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -182,7 +182,7 @@ struct StatusBarWindow : Window {
if (this->reminder_timeout > 0) {
Dimension icon_size = GetSpriteSize(SPR_UNREAD_NEWS);
- DrawSprite(SPR_UNREAD_NEWS, PAL_NONE, r.right - WD_FRAMERECT_RIGHT - icon_size.width, r.top + WD_FRAMERECT_TOP + (FONT_HEIGHT_NORMAL - icon_size.height) / 2);
+ DrawSprite(SPR_UNREAD_NEWS, PAL_NONE, r.right - WD_FRAMERECT_RIGHT - icon_size.width, r.top + WD_FRAMERECT_TOP + (int)(FONT_HEIGHT_NORMAL - icon_size.height) / 2);
}
break;
}