diff options
author | michi_cc <michi_cc@openttd.org> | 2015-08-10 20:24:13 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2015-08-10 20:24:13 +0000 |
commit | 2b8bb12d623a64897636234ed3c508517a1a2ba6 (patch) | |
tree | 015abed42269cf73bb83b2f92b029084735d82cd /src/widgets/dropdown.cpp | |
parent | 35b77450f80580da2aa7f087aa2a1631b92ebd62 (diff) | |
download | openttd-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.cpp | 4 |
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); } |