mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 18:25:16 +01:00
Keep 'select area' button pressed while the tool is active
This commit is contained in:
@@ -379,6 +379,15 @@ static void window_view_clipping_invalidate(rct_window *w)
|
||||
if (mainWindow != nullptr) {
|
||||
widget_set_checkbox_value(w, WIDX_CLIP_CHECKBOX_ENABLE, mainWindow->viewport->flags & VIEWPORT_FLAG_CLIP_VIEW);
|
||||
}
|
||||
|
||||
if (window_view_clipping_tool_is_active())
|
||||
{
|
||||
w->pressed_widgets |= 1ULL << WIDX_CLIP_SELECTOR;
|
||||
}
|
||||
else
|
||||
{
|
||||
w->pressed_widgets &= ~(1ULL << WIDX_CLIP_SELECTOR);
|
||||
}
|
||||
}
|
||||
|
||||
static void window_view_clipping_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
|
||||
Reference in New Issue
Block a user