From f9f0ac3ec2a4e4d45ed7bbae459816c528d27bc8 Mon Sep 17 00:00:00 2001 From: kju Date: Fri, 15 Jan 2010 12:52:15 +0000 Subject: [PATCH] icon is only needed when menu is used, so moved it accordingly into the conditional compiled block --- games/breakout/breakout.c | 3 +-- games/snake/snake_game.c | 8 ++++---- games/space_invaders/invaders2.c | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/games/breakout/breakout.c b/games/breakout/breakout.c index 9804ec2..d63b40d 100644 --- a/games/breakout/breakout.c +++ b/games/breakout/breakout.c @@ -1,11 +1,10 @@ #include "../../menu/menu.h" +#ifdef MENU_SUPPORT static uint8_t icon[8] PROGMEM = {0x03, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00}; /* our Icon */ - -#ifdef MENU_SUPPORT game_descriptor_t invaders_game_descriptor __attribute__((section(".game_descriptors"))) ={ &borg_breakout, icon, diff --git a/games/snake/snake_game.c b/games/snake/snake_game.c index 29e369b..e9ce1a7 100644 --- a/games/snake/snake_game.c +++ b/games/snake/snake_game.c @@ -12,13 +12,13 @@ // up, snake goes up, etc. #define GAME_SNAKE_NEWCONTROL - // MSB is leftmost pixel -static uint8_t icon[8] PROGMEM = - {0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xad, 0xa1, 0xbf}; // Snake icon - void snake_game(); #ifdef MENU_SUPPORT +// MSB is leftmost pixel +static uint8_t icon[8] PROGMEM = + {0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xad, 0xa1, 0xbf}; // Snake icon + game_descriptor_t snake_game_descriptor __attribute__((section(".game_descriptors"))) ={ &snake_game, icon, diff --git a/games/space_invaders/invaders2.c b/games/space_invaders/invaders2.c index b8732dc..a60d773 100644 --- a/games/space_invaders/invaders2.c +++ b/games/space_invaders/invaders2.c @@ -8,13 +8,13 @@ //#include +void borg_invaders(); + +#ifdef MENU_SUPPORT // MSB is leftmost pixel static uint8_t icon[8] PROGMEM = {0x66, 0x18, 0x3c, 0x5a, 0xff, 0xbd, 0xa5, 0x18}; // Invaders icon -void borg_invaders(); - -#ifdef MENU_SUPPORT game_descriptor_t invaders_game_descriptor __attribute__((section(".game_descriptors"))) ={ &borg_invaders, icon,