Fix display bug on menu buttons when comiled with 'unsigned character' (issue 423)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1734 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
107779edf5
commit
9cfefc9662
@ -227,7 +227,7 @@ void Draw_menu_button(byte btn_number,byte pressed)
|
||||
word y_pos;
|
||||
byte current_menu;
|
||||
byte color;
|
||||
char icon;
|
||||
signed char icon;
|
||||
|
||||
// Find in which menu the button is
|
||||
for (current_menu = 0; current_menu < MENUBAR_COUNT; current_menu++)
|
||||
|
||||
@ -581,7 +581,7 @@ GFX2_GLOBAL struct
|
||||
word Height; ///< Button's active heigth
|
||||
byte Pressed; ///< Button is currently pressed
|
||||
byte Shape; ///< Shape, listed in enum ::BUTTON_SHAPES
|
||||
char Icon; ///< Which icon to display: Either the one from the toolbar (-1) or one of ::MENU_SPRITE
|
||||
signed char Icon; ///< Which icon to display: Either the one from the toolbar (-1) or one of ::MENU_SPRITE
|
||||
|
||||
// Triggers on mouse/keyboard
|
||||
Func_action Left_action; ///< Action triggered by a left mouseclick on the button
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user