From 9cfefc96624a8b4e19a85a1da3f50d6a565183df Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sat, 26 Feb 2011 15:56:45 +0000 Subject: [PATCH] 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 --- src/engine.c | 2 +- src/global.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index 2cb62b63..5c9bdd59 100644 --- a/src/engine.c +++ b/src/engine.c @@ -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++) diff --git a/src/global.h b/src/global.h index 3746126b..2b6b9ee8 100644 --- a/src/global.h +++ b/src/global.h @@ -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