Fix #7742, 66dd7c3: widget position can be negative

This commit is contained in:
glx
2019-09-17 02:52:36 +02:00
committed by Niels Martin Hansen
parent ed6a427fcc
commit 1f418555a1
2 changed files with 3 additions and 3 deletions

View File

@@ -2494,7 +2494,7 @@ void NWidgetLeaf::Draw(const Window *w)
case WWT_RESIZEBOX:
assert(this->widget_data == 0);
DrawResizeBox(r, this->colour, this->pos_x < (uint)(w->width / 2), !!(w->flags & WF_SIZING));
DrawResizeBox(r, this->colour, this->pos_x < (w->width / 2), !!(w->flags & WF_SIZING));
break;
case WWT_CLOSEBOX: