From 2f16defd6fed0dfa0fd00671ed30e26508897600 Mon Sep 17 00:00:00 2001 From: Bob Andrews Date: Thu, 12 Jun 2025 00:45:17 +0200 Subject: [PATCH] Update tgidemo.c - apple2 fix --- samples/tgidemo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/tgidemo.c b/samples/tgidemo.c index d6ae545dc..9fa81fa82 100644 --- a/samples/tgidemo.c +++ b/samples/tgidemo.c @@ -81,15 +81,23 @@ static void DoPalette (int n) { static const unsigned char Palette[4][2] = { /* FIXME: add some ifdefs with proper values for targets that need it */ +#if !defined(__APPLE2__) { COLOR_BLACK, COLOR_BLUE }, { COLOR_WHITE, COLOR_BLACK }, { COLOR_RED, COLOR_BLACK }, { COLOR_BLACK, COLOR_BLACK } +#else + { COLOR_WHITE, COLOR_BLACK }, + { COLOR_BLACK, COLOR_BLACK }, + { COLOR_WHITE, COLOR_BLACK }, + { COLOR_BLACK, COLOR_BLACK } +#endif }; tgi_setpalette (Palette[n]); } + static void DoCircles (void) { unsigned char I;