aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-03-27 01:18:31 -0400
committerNebuleon Fumika2013-03-27 01:18:31 -0400
commit639a7081d46866364a2001469b572b8e1ecf6c93 (patch)
tree300cb4ecfb56ab6335e06b7b01949bc976096c46 /source
parent286c44077ad2f6a7e9bb4c7723f867cd5b7414fc (diff)
downloadsnesemu-639a7081d46866364a2001469b572b8e1ecf6c93.tar.gz
snesemu-639a7081d46866364a2001469b572b8e1ecf6c93.tar.bz2
snesemu-639a7081d46866364a2001469b572b8e1ecf6c93.zip
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.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c8
1 files changed, 7 insertions, 1 deletions
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);