made 27c3 animation compilable on gcc >= 4.6.0

This commit is contained in:
Christian Kroll 2011-09-04 22:29:30 +00:00
parent 9732a13bf0
commit 610f62a4f5
1 changed files with 36 additions and 36 deletions

View File

@ -5,17 +5,7 @@
#include "bitmapscroller.h"
#include "27c3.h"
static uint8_t logo_27c3_getChunk(unsigned char const nBitPlane,
unsigned char const nChunkX,
unsigned char const nChunkY,
unsigned int const nFrame)
{
assert(nBitPlane < 2);
assert(nChunkX < 7);
assert(nChunkY < 16);
static uint8_t aBitmap [2][16][7] PROGMEM =
static uint8_t const aBitmap27c3 [2][16][7] PROGMEM =
{{{0x08, 0x00, 0x40, 0x04, 0x00, 0x40, 0x00}, // bit plane 0
{0x08, 0x00, 0x40, 0x04, 0x00, 0x40, 0x00},
{0x08, 0x00, 0x40, 0x04, 0x00, 0x40, 0x00},
@ -50,7 +40,17 @@ static uint8_t logo_27c3_getChunk(unsigned char const nBitPlane,
{0x0F, 0xFF, 0xF9, 0xE7, 0xFF, 0xFF, 0xF0},
{0x08, 0x00, 0x01, 0xE4, 0x00, 0x00, 0x00}}};
return pgm_read_byte(&aBitmap[nBitPlane][nChunkY][nChunkX]);
static uint8_t logo_27c3_getChunk(unsigned char const nBitPlane,
unsigned char const nChunkX,
unsigned char const nChunkY,
unsigned int const nFrame)
{
assert(nBitPlane < 2);
assert(nChunkX < 7);
assert(nChunkY < 16);
return pgm_read_byte(&aBitmap27c3[nBitPlane][nChunkY][nChunkX]);
}
void logo_27c3()