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:
Yves Rizoud 2011-02-26 15:56:45 +00:00
parent 107779edf5
commit 9cfefc9662
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ void Draw_menu_button(byte btn_number,byte pressed)
word y_pos; word y_pos;
byte current_menu; byte current_menu;
byte color; byte color;
char icon; signed char icon;
// Find in which menu the button is // Find in which menu the button is
for (current_menu = 0; current_menu < MENUBAR_COUNT; current_menu++) for (current_menu = 0; current_menu < MENUBAR_COUNT; current_menu++)

View File

@ -581,7 +581,7 @@ GFX2_GLOBAL struct
word Height; ///< Button's active heigth word Height; ///< Button's active heigth
byte Pressed; ///< Button is currently pressed byte Pressed; ///< Button is currently pressed
byte Shape; ///< Shape, listed in enum ::BUTTON_SHAPES 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 // Triggers on mouse/keyboard
Func_action Left_action; ///< Action triggered by a left mouseclick on the button Func_action Left_action; ///< Action triggered by a left mouseclick on the button