␊ |
// ====================================================================␊ |
␊ |
static inline␊ |
void vramwrite (void *data, int width, int height)␊ |
static inline void vramwrite (void *data, int width, int height)␊ |
{␊ |
␉if (VIDEO (depth) == 32 && VIDEO (rowBytes) == gui.backbuffer->width * 4)␊ |
␉{␊ |
|
␊ |
struct putc_info //Azi: exists on console.c & printf.c␊ |
{␊ |
␉char * str;␊ |
␉char * last_str;␊ |
␉char *str;␊ |
␉char *last_str;␊ |
};␊ |
␊ |
// ====================================================================␊ |
␊ |
static int␊ |
sputc(int c, struct putc_info * pi) //Azi: same as above␊ |
static int sputc(int c, struct putc_info * pi) //Azi: same as above␊ |
{␊ |
␉if (pi->last_str)␊ |
␉{␊ |
|
␊ |
// ====================================================================␊ |
␊ |
uint16_t bootImageWidth = 0; ␊ |
uint16_t bootImageHeight = 0; ␊ |
uint8_t *bootImageData = NULL; ␊ |
uint16_t bootImageWidth = 0;␊ |
uint16_t bootImageHeight = 0;␊ |
uint8_t *bootImageData = NULL;␊ |
static bool usePngImage = true;␊ |
␊ |
//==========================================================================␊ |
|
␉int length;␊ |
␉const char *dummyVal;␊ |
␉int oldScreenWidth, oldScreenHeight;␊ |
␉bool legacy_logo;␊ |
␉uint16_t x, y; ␊ |
␉␊ |
␉if (getBoolForKey("Legacy Logo", &legacy_logo, &bootInfo->chameleonConfig) && legacy_logo)␊ |
␉bool legacy_logo = true; // ErmaC: Legacy Logo is enabled by default␊ |
␉uint16_t x, y;␊ |
␊ |
␉getBoolForKey("Legacy Logo", &legacy_logo, &bootInfo->chameleonConfig);␊ |
␊ |
␉if ( legacy_logo )␊ |
␉{␊ |
␉␉usePngImage = false; ␊ |
␉}␊ |
|
␉}␊ |
␉else␊ |
␉{␊ |
␉␉uint8_t *appleBootPict; ␊ |
␉␉bootImageData = NULL; ␊ |
␉␉bootImageWidth = kAppleBootWidth; ␊ |
␉␉bootImageHeight = kAppleBootHeight; ␊ |
␉␉uint8_t *appleBootPict;␊ |
␉␉bootImageData = NULL;␊ |
␉␉bootImageWidth = kAppleBootWidth;␊ |
␉␉bootImageHeight = kAppleBootHeight;␊ |
␊ |
␉␉// Prepare the data for the default Apple boot image. ␊ |
␉␉appleBootPict = (uint8_t *) decodeRLE(gAppleBootPictRLE, kAppleBootRLEBlocks, bootImageWidth * bootImageHeight); ␊ |
␉␉// Prepare the data for the default Apple boot image.␊ |
␉␉appleBootPict = (uint8_t *) decodeRLE(gAppleBootPictRLE, kAppleBootRLEBlocks, bootImageWidth * bootImageHeight);␊ |
␉␉if (appleBootPict)␊ |
␉␉{␊ |
␉␉␉convertImage(bootImageWidth, bootImageHeight, appleBootPict, &bootImageData); ␊ |
␉␉␉convertImage(bootImageWidth, bootImageHeight, appleBootPict, &bootImageData);␊ |
␉␉␉if (bootImageData)␊ |
␉␉␉{␊ |
␉␉␉␉x = (screen_params[0] - MIN(kAppleBootWidth, screen_params[0])) / 2; ␊ |
␉␉␉␉y = (screen_params[1] - MIN(kAppleBootHeight, screen_params[1])) / 2; ␊ |
␉␉␉␉x = (screen_params[0] - MIN(kAppleBootWidth, screen_params[0])) / 2;␊ |
␉␉␉␉y = (screen_params[1] - MIN(kAppleBootHeight, screen_params[1])) / 2;␊ |
␉␉␉␉drawDataRectangle(x, y, kAppleBootWidth, kAppleBootHeight, bootImageData);␊ |
␉␉␉␉free(bootImageData);␊ |
␉␉␉}␊ |
␉␉␉free(appleBootPict); ␊ |
␉␉} ␊ |
␉␉␉free(appleBootPict);␊ |
␉␉}␊ |
␉}␊ |
}␊ |
// ====================================================================␊ |