forked from rosebudai/OpenRCT2-Web
fix widget index size & size for consistency
This commit is contained in:
1 parent
f4f07ae5bb
commit
50eaa99eac
3 files changed
+3
-2
No files matched your search
+1
-1
@@ -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];
|
||||
|
||||
+1
-1
@@ -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