1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

more funstuff in tgidemo

git-svn-id: svn://svn.cc65.org/cc65/trunk@1832 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst 2002-12-23 14:54:28 +00:00
parent 17a99e2709
commit b3a4777d4c

View File

@ -159,6 +159,24 @@ static void DoDiagram (void)
}
static void DoLines (void)
{
static const unsigned char Palette[2] = { COLOR_WHITE, COLOR_BLACK };
unsigned X;
tgi_setpalette (Palette);
tgi_setcolor (1);
for (X = 0; X < 200; X+=10) {
tgi_line(0, 0, 200, X);
tgi_line(0, 0, X, 200);
tgi_line(200, 200, 0, 200-X);
tgi_line(200, 200, 200-X, 0);
}
cgetc ();
tgi_clear ();
}
int main (void)
{
@ -184,6 +202,7 @@ int main (void)
DoCircles ();
DoCheckerboard ();
DoDiagram ();
DoLines ();
/* Unload the driver */
tgi_unload ();