mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Use consistent left-shift notation for widgets (#14956)
This commit is contained in:
@@ -182,8 +182,8 @@ rct_window* window_scenarioselect_open(std::function<void(std::string_view)> cal
|
||||
windowWidth, windowHeight, &window_scenarioselect_events, WC_SCENARIO_SELECT,
|
||||
WF_10 | (titleEditor ? WF_STICK_TO_FRONT : 0));
|
||||
window->widgets = window_scenarioselect_widgets;
|
||||
window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4)
|
||||
| (1 << WIDX_TAB5) | (1 << WIDX_TAB6) | (1 << WIDX_TAB7) | (1 << WIDX_TAB8);
|
||||
window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3)
|
||||
| (1ULL << WIDX_TAB4) | (1ULL << WIDX_TAB5) | (1ULL << WIDX_TAB6) | (1ULL << WIDX_TAB7) | (1ULL << WIDX_TAB8);
|
||||
|
||||
window_scenarioselect_init_tabs(window);
|
||||
initialise_list_items(window);
|
||||
@@ -409,8 +409,8 @@ static void window_scenarioselect_scrollmouseover(rct_window* w, int32_t scrollI
|
||||
static void window_scenarioselect_invalidate(rct_window* w)
|
||||
{
|
||||
w->pressed_widgets &= ~(
|
||||
(1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4) | (1 << WIDX_TAB5)
|
||||
| (1 << WIDX_TAB6) | (1 << WIDX_TAB7) | (1 << WIDX_TAB8));
|
||||
(1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) | (1ULL << WIDX_TAB4)
|
||||
| (1ULL << WIDX_TAB5) | (1ULL << WIDX_TAB6) | (1ULL << WIDX_TAB7) | (1ULL << WIDX_TAB8));
|
||||
|
||||
w->pressed_widgets |= 1LL << (w->selected_tab + WIDX_TAB1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user