fix widget index size & size for consistency

This commit is contained in:
IntelOrca 2016-01-05 23:16:09 +00:00
parent f4f07ae5bb
commit 50eaa99eac
3 changed files with 3 additions and 2 deletions

View file

@ -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];

View file

@ -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;

View file

@ -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;