icon is only needed when menu is used, so moved it accordingly into the

conditional compiled block
This commit is contained in:
kju 2010-01-15 12:52:15 +00:00
parent 44a69a04af
commit f9f0ac3ec2
3 changed files with 8 additions and 9 deletions

View File

@ -1,11 +1,10 @@
#include "../../menu/menu.h" #include "../../menu/menu.h"
#ifdef MENU_SUPPORT
static uint8_t icon[8] PROGMEM = static uint8_t icon[8] PROGMEM =
{0x03, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00}; /* our Icon */ {0x03, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00}; /* our Icon */
#ifdef MENU_SUPPORT
game_descriptor_t invaders_game_descriptor __attribute__((section(".game_descriptors"))) ={ game_descriptor_t invaders_game_descriptor __attribute__((section(".game_descriptors"))) ={
&borg_breakout, &borg_breakout,
icon, icon,

View File

@ -12,13 +12,13 @@
// up, snake goes up, etc. // up, snake goes up, etc.
#define GAME_SNAKE_NEWCONTROL #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(); void snake_game();
#ifdef MENU_SUPPORT #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"))) ={ game_descriptor_t snake_game_descriptor __attribute__((section(".game_descriptors"))) ={
&snake_game, &snake_game,
icon, icon,

View File

@ -8,13 +8,13 @@
//#include <stdio.h> //#include <stdio.h>
void borg_invaders();
#ifdef MENU_SUPPORT
// MSB is leftmost pixel // MSB is leftmost pixel
static uint8_t icon[8] PROGMEM = static uint8_t icon[8] PROGMEM =
{0x66, 0x18, 0x3c, 0x5a, 0xff, 0xbd, 0xa5, 0x18}; // Invaders icon {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"))) ={ game_descriptor_t invaders_game_descriptor __attribute__((section(".game_descriptors"))) ={
&borg_invaders, &borg_invaders,
icon, icon,