summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2015-08-10 20:24:13 +0000
committermichi_cc <michi_cc@openttd.org>2015-08-10 20:24:13 +0000
commit2b8bb12d623a64897636234ed3c508517a1a2ba6 (patch)
tree015abed42269cf73bb83b2f92b029084735d82cd /src/widgets/dropdown.cpp
parent35b77450f80580da2aa7f087aa2a1631b92ebd62 (diff)
downloadopenttd-2b8bb12d623a64897636234ed3c508517a1a2ba6.tar.xz
(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing conversions in initializer lists.
Diffstat (limited to 'src/widgets/dropdown.cpp')
-rw-r--r--src/widgets/dropdown.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index aecfc6b2f..e0ad96a87 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -380,8 +380,8 @@ void ShowDropDownListAt(Window *w, const DropDownList *list, int selected, int b
if (auto_width) width = max(width, max_item_width);
- Point dw_pos = { w->left + (_current_text_dir == TD_RTL ? wi_rect.right + 1 - width : wi_rect.left), top};
- Dimension dw_size = {width, height};
+ Point dw_pos = { w->left + (_current_text_dir == TD_RTL ? wi_rect.right + 1 - (int)width : wi_rect.left), top};
+ Dimension dw_size = {width, (uint)height};
new DropdownWindow(w, list, selected, button, instant_close, dw_pos, dw_size, wi_colour, scroll);
}