Update to 1.7.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: widget.cpp 27713 2016-12-25 17:57:47Z frosch $ */
|
||||
/* $Id: widget.cpp 27863 2017-05-03 20:09:51Z frosch $ */
|
||||
|
||||
/*
|
||||
* This file is part of OpenTTD.
|
||||
@@ -511,11 +511,13 @@ static inline void DrawResizeBox(const Rect &r, Colours colour, bool at_left, bo
|
||||
{
|
||||
DrawFrameRect(r.left, r.top, r.right, r.bottom, colour, (clicked) ? FR_LOWERED : FR_NONE);
|
||||
if (at_left) {
|
||||
Dimension d = GetSpriteSize(SPR_WINDOW_RESIZE_LEFT);
|
||||
DrawSprite(SPR_WINDOW_RESIZE_LEFT, PAL_NONE, r.left + WD_RESIZEBOX_RIGHT + clicked,
|
||||
r.bottom - WD_RESIZEBOX_BOTTOM - GetSpriteSize(SPR_WINDOW_RESIZE_LEFT).height + clicked);
|
||||
r.bottom + 1 - WD_RESIZEBOX_BOTTOM - d.height + clicked);
|
||||
} else {
|
||||
DrawSprite(SPR_WINDOW_RESIZE_RIGHT, PAL_NONE, r.left + WD_RESIZEBOX_LEFT + clicked,
|
||||
r.bottom - WD_RESIZEBOX_BOTTOM - GetSpriteSize(SPR_WINDOW_RESIZE_RIGHT).height + clicked);
|
||||
Dimension d = GetSpriteSize(SPR_WINDOW_RESIZE_RIGHT);
|
||||
DrawSprite(SPR_WINDOW_RESIZE_RIGHT, PAL_NONE, r.right + 1 - WD_RESIZEBOX_RIGHT - d.width + clicked,
|
||||
r.bottom + 1 - WD_RESIZEBOX_BOTTOM - d.height + clicked);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user