summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-18 12:31:09 +0000
committerrubidium <rubidium@openttd.org>2009-11-18 12:31:09 +0000
commit76a5f4f8cd30254e2e1c605e4af48940cb6552e5 (patch)
treed86a00e4bc8379f39b893526186ee8b7569b61ed /src/widgets
parentb4e9cb3ca3c73d38954ef177b72c138243169252 (diff)
downloadopenttd-76a5f4f8cd30254e2e1c605e4af48940cb6552e5.tar.xz
(svn r18164) -Change: make dropdown 'right' align to the opening widget with RTL
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dropdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index 5cc41742c..ee3c929dd 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -390,7 +390,7 @@ void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, u
if (auto_width) width = max(width, max_item_width);
- Point dw_pos = {w->left + wi_rect.left, top};
+ Point dw_pos = { w->left + (_dynlang.text_dir == TD_RTL ? wi_rect.right + 1 - width : wi_rect.left), top};
Dimension dw_size = {width, height};
new DropdownWindow(w, list, selected, button, instant_close, dw_pos, dw_size, wi_colour, scroll);
}