summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-25 00:21:22 +0000
committerrubidium <rubidium@openttd.org>2009-03-25 00:21:22 +0000
commit4ad9dda5a09fe13288cd276af2d584f5a7663988 (patch)
tree4141a9321d754acec7aeff950f7386be55112e83 /src
parent86b97f31273e5801c30a0f27d61f47b28a7ecde0 (diff)
downloadopenttd-4ad9dda5a09fe13288cd276af2d584f5a7663988.tar.xz
(svn r15842) -Codechange: make DrawSortButtonState RTL.
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 00a732e15..8e844efd2 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -633,7 +633,8 @@ void Window::DrawSortButtonState(int widget, SortButtonState state) const
if (state == SBS_OFF) return;
int offset = this->IsWidgetLowered(widget) ? 1 : 0;
- DrawString(this->widget[widget].right - 11 + offset, this->widget[widget].right, this->widget[widget].top + 1 + offset, state == SBS_DOWN ? DOWNARROW : UPARROW, TC_BLACK);
+ int base = offset + (_dynlang.text_dir == TD_LTR ? this->widget[widget].right - 11 : this->widget[widget].left);
+ DrawString(base, base + 11, this->widget[widget].top + 1 + offset, state == SBS_DOWN ? DOWNARROW : UPARROW, TC_BLACK, SA_CENTER);
}