diff --git a/doc/tgi.sgml b/doc/tgi.sgml index 3b013664f..182ce2807 100644 --- a/doc/tgi.sgml +++ b/doc/tgi.sgml @@ -43,7 +43,7 @@ of range. /* Draw the upper half of an ellipse */ -tgi_setcolor(TGI_COLOR_BLUE); +tgi_setcolor(1); tgi_arc (50, 50, 40, 20, 0, 180); @@ -67,7 +67,7 @@ be used in presence of a prototype. -tgi_setcolor(TGI_COLOR_GREEN); +tgi_setcolor(1); tgi_bar(10, 10, 100, 60); @@ -94,7 +94,7 @@ be used in presence of a prototype. , -tgi_setcolor(TGI_COLOR_BLACK); +tgi_setcolor(1); tgi_circle(50, 40, 40); @@ -154,7 +154,7 @@ be used in presence of a prototype. , -tgi_setcolor(TGI_COLOR_RED); +tgi_setcolor(1); tgi_ellipse (50, 40, 40, 20); @@ -216,17 +216,15 @@ original aspect ratio. -/ , + color = tgi_getcolor(); @@ -238,7 +236,8 @@ color = tgi_getcolor(); -/ / -/ The function is only available as fastcall function, so it may only be used in presence of a prototype. @@ -626,7 +623,7 @@ be used in presence of a prototype. #define tgi_updatedisplay() tgi_ioctl(4, (void*)1) if (!tgi_busy()) { tgi_sprite(&background); - tgi_setcolor(TGI_COLOR_BLUE); + tgi_setcolor(1); tgi_outttextxy(20,40,"Hello World"); tgi_updatedisplay(); } @@ -791,7 +788,7 @@ of range. /* Draw the closed upper half of an ellipse */ -tgi_setcolor(TGI_COLOR_BLUE); +tgi_setcolor(1); tgi_pieslice (50, 50, 40, 20, 0, 180); @@ -834,20 +831,21 @@ only in the presence of a prototype. -/ - The function is only available as fastcall function, so it may only be used in presence of a prototype. , + -tgi_setcolor(TGI_COLOR_BLACK); +tgi_setcolor(1); tgi_bar(0,0,30,30); -tgi_setcolor(TGI_COLOR_WHITE); +tgi_setcolor(2); tgi_bar(10,10,20,20); @@ -893,13 +891,19 @@ Palette is a pointer to as many entries as there are colors. / The function is only available as fastcall function, so it may only be used in presence of a prototype. +The palette is the (only) place where to use the TGI_COLOR_XY values. This +has been an ongoing and reoccurring misunderstanding in the past: At every other +place, the "color" values are indices into the current palette. , +