in bootlogo.c my function showBootLogo is this:
void showBootLogo()
{
uint8_t *bootImageData = NULL;
uint8_t *appleBootLogo = (uint8_t *) decodeRLE(appleLogoRLE, 686, 16384);
convertImage(APPLE_LOGO_WIDTH, APPLE_LOGO_HEIGHT, appleBootLogo, &bootImageData);
uint16_t x = APPLE_LOGO_X; // (VIDEO(width) - 128) / 2;
uint16_t y = APPLE_LOGO_Y; // (VIDEO(height) - 128) / 2;
drawDataRectangle(x, y, APPLE_LOGO_WIDTH, APPLE_LOGO_HEIGHT, bootImageData);
free(bootImageData);
free(appleBootLogo);
}
and in bootlogo.h I have only this:
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define VIDEO(x) (bootArgs->Video.v_ ## x)
const unsigned char appleLogoRLE[] =
{
0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0x50, 0x01, 0x01, 0x02, 0x01, 0x17,
....
0xff, 0x01, 0xb3, 0x01
};