From 35e4dc0f4bab5b7aca2ad6b1ec9914d88a576c06 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 18 Mar 2009 01:06:48 +0000 Subject: (svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth) --- src/widget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/widget.cpp') diff --git a/src/widget.cpp b/src/widget.cpp index ce4f4f160..2643eb9e3 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -451,7 +451,11 @@ void Window::DrawWidgets() const clicked = !!(this->flags4 & WF_SIZING); DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->colour, (clicked) ? FR_LOWERED : FR_NONE); - DrawSprite(SPR_WINDOW_RESIZE, PAL_NONE, r.left + 3 + clicked, r.top + 3 + clicked); + if (wi->left < (this->width / 2)) { + DrawSprite(SPR_WINDOW_RESIZE_LEFT, PAL_NONE, r.left + 2, r.top + 3 + clicked); + } else { + DrawSprite(SPR_WINDOW_RESIZE_RIGHT, PAL_NONE, r.left + 3 + clicked, r.top + 3 + clicked); + } break; case WWT_CLOSEBOX: { -- cgit v1.2.3-70-g09d2