summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-06-14 15:50:39 +0000
committeralberth <alberth@openttd.org>2009-06-14 15:50:39 +0000
commitf23afd988fb71cf429ba70b6cfc7bd0a8626c0e6 (patch)
tree4556bbafd2d14db6f2a954a0a42263bc76cff6ec
parent4cd94e17a179760274cf392a6585d7ec35983316 (diff)
downloadopenttd-f23afd988fb71cf429ba70b6cfc7bd0a8626c0e6.tar.xz
(svn r16575) -Fix (r15760): Move resize sprite to the right when widget is lowered for RTL languages also.
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 516f6b04c..8092cf431 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -507,7 +507,7 @@ static inline void DrawResizeBox(const Rect &r, Colours colour, bool at_left, bo
assert(r.right - r.left == 11); // To ensure the same sizes are used everywhere!
DrawFrameRect(r.left, r.top, r.right, r.bottom, colour, (clicked) ? FR_LOWERED : FR_NONE);
if (at_left) {
- DrawSprite(SPR_WINDOW_RESIZE_LEFT, PAL_NONE, r.left + 2, r.top + 3 + clicked);
+ DrawSprite(SPR_WINDOW_RESIZE_LEFT, PAL_NONE, r.left + 2 + clicked, r.top + 3 + clicked);
} else {
DrawSprite(SPR_WINDOW_RESIZE_RIGHT, PAL_NONE, r.left + 3 + clicked, r.top + 3 + clicked);
}