mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
fix widget index size & size for consistency
This commit is contained in:
@@ -224,7 +224,7 @@ static void input_scroll_drag_begin(int x, int y, rct_window* w, rct_widget* wid
|
||||
*/
|
||||
static void input_scroll_drag_continue(int x, int y, rct_window* w)
|
||||
{
|
||||
uint8 widgetIndex = _dragWidget.widget_index;
|
||||
rct_widgetindex widgetIndex = _dragWidget.widget_index;
|
||||
uint8 scrollIndex = _dragScrollIndex;
|
||||
|
||||
rct_widget* widget = &w->widgets[widgetIndex];
|
||||
|
||||
@@ -69,7 +69,7 @@ enum {
|
||||
typedef struct {
|
||||
rct_windowclass window_classification;
|
||||
rct_windownumber window_number;
|
||||
uint8 widget_index;
|
||||
rct_widgetindex widget_index;
|
||||
} widget_ref;
|
||||
|
||||
extern uint8 gInputState;
|
||||
|
||||
@@ -43,6 +43,7 @@ typedef void wndproc(struct rct_window*, union rct_window_event*);
|
||||
|
||||
typedef uint8 rct_windowclass;
|
||||
typedef uint16 rct_windownumber;
|
||||
typedef sint16 rct_widgetindex;
|
||||
|
||||
typedef struct {
|
||||
rct_windowclass classification;
|
||||
|
||||
Reference in New Issue
Block a user