Update tgidemo.c - apple2 fix

This commit is contained in:
Bob Andrews
2025-06-12 00:45:17 +02:00
committed by GitHub
parent 1c71d4c609
commit 2f16defd6f

View File

@@ -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;