mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
parent
ed6a427fcc
commit
1f418555a1
@ -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:
|
||||
|
@ -174,8 +174,8 @@ public:
|
||||
uint current_x; ///< Current horizontal size (after resizing).
|
||||
uint current_y; ///< Current vertical size (after resizing).
|
||||
|
||||
uint pos_x; ///< Horizontal position of top-left corner of the widget in the window.
|
||||
uint pos_y; ///< Vertical position of top-left corner of the widget in the window.
|
||||
int pos_x; ///< Horizontal position of top-left corner of the widget in the window.
|
||||
int pos_y; ///< Vertical position of top-left corner of the widget in the window.
|
||||
|
||||
NWidgetBase *next; ///< Pointer to next widget in container. Managed by parent container widget.
|
||||
NWidgetBase *prev; ///< Pointer to previous widget in container. Managed by parent container widget.
|
||||
|
Loading…
Reference in New Issue
Block a user