Change ugfx startup logo to white so it shows up on monochrome displays

This commit is contained in:
inmarket 2015-02-07 23:33:02 +10:00
parent 1760cd3aad
commit 143d9be295

View file

@ -27,6 +27,7 @@
// Number of milliseconds for the startup logo - 0 means disabled. // Number of milliseconds for the startup logo - 0 means disabled.
#if GDISP_NEED_STARTUP_LOGO #if GDISP_NEED_STARTUP_LOGO
#define GDISP_STARTUP_LOGO_TIMEOUT 1000 #define GDISP_STARTUP_LOGO_TIMEOUT 1000
#define GDISP_STARTUP_LOGO_COLOR White
#else #else
#define GDISP_STARTUP_LOGO_TIMEOUT 0 #define GDISP_STARTUP_LOGO_TIMEOUT 0
#endif #endif
@ -536,7 +537,7 @@ static void line_clip(GDisplay *g) {
// Simple but crude! // Simple but crude!
for(p = blks; p < blks+sizeof(blks)/sizeof(blks[0]); p+=4) for(p = blks; p < blks+sizeof(blks)/sizeof(blks[0]); p+=4)
gdispGFillArea(g, x+p[0]*w, y+p[1]*w, p[2]*w, p[3]*w, Blue); gdispGFillArea(g, x+p[0]*w, y+p[1]*w, p[2]*w, p[3]*w, GDISP_STARTUP_LOGO_COLOR);
} }
#endif #endif