Browse Source

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

conditional compiled block
feature/2015
kju 15 years ago
parent
commit
f9f0ac3ec2
  1. 3
      games/breakout/breakout.c
  2. 8
      games/snake/snake_game.c
  3. 6
      games/space_invaders/invaders2.c

3
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,

8
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,

6
games/space_invaders/invaders2.c

@ -8,13 +8,13 @@
//#include <stdio.h>
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,

Loading…
Cancel
Save