From 639a7081d46866364a2001469b572b8e1ecf6c93 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Wed, 27 Mar 2013 01:18:31 -0400 Subject: Use white text with a black outline when drawing the date of a saved state into its bitmap. It looks nicer than white on a rectangle of black. --- source/nds/gui.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/nds/gui.c') diff --git a/source/nds/gui.c b/source/nds/gui.c index f03873d..d9b73e1 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -1651,7 +1651,13 @@ int save_state(char* file, void* screen) sprintf(str, "%02d-%02d %02d:%02d:%02d", time.month, time.day, time.hours, time.minutes, time.seconds); - PRINT_STRING_BG(screen, str, COLOR_WHITE, COLOR_BLACK, 0, 0); + // A black outline in all four directions... + PRINT_STRING_BG(screen, str, COLOR_BLACK, 0x8000, 0, 1); + PRINT_STRING_BG(screen, str, COLOR_BLACK, 0x8000, 2, 1); + PRINT_STRING_BG(screen, str, COLOR_BLACK, 0x8000, 1, 0); + PRINT_STRING_BG(screen, str, COLOR_BLACK, 0x8000, 1, 2); + // ... and white text. + PRINT_STRING_BG(screen, str, COLOR_WHITE, 0x8000, 1, 1); fwrite((void*)&time, 1, sizeof(struct rtc), fp); fwrite(screen, 1, 256*192*2, fp); -- cgit v1.2.3