diff --git a/doc/tgi.sgml b/doc/tgi.sgml index 73a0f3bbd..9f37962c3 100644 --- a/doc/tgi.sgml +++ b/doc/tgi.sgml @@ -41,11 +41,11 @@ of range. , , - + /* Draw the upper half of an ellipse */ tgi_setcolor(TGI_COLOR_BLUE); tgi_arc (50, 50, 40, 20, 0, 180); - + @@ -66,10 +66,10 @@ be used in presence of a prototype. + tgi_setcolor(TGI_COLOR_GREEN); tgi_bar(10, 10, 100, 60); - + @@ -93,10 +93,10 @@ be used in presence of a prototype. , , - + tgi_setcolor(TGI_COLOR_BLACK); tgi_circle(50, 40, 40); - + @@ -153,10 +153,10 @@ be used in presence of a prototype. , , - + tgi_setcolor(TGI_COLOR_RED); tgi_ellipse (50, 40, 40, 20); - + @@ -227,9 +227,9 @@ and then you change the green of the palette to blue using tgi_setpalette then after this painting in TGI_COLOR_GREEN will actually be blue. + color = tgi_getcolor(); - + @@ -253,7 +253,7 @@ a 256). Or, it might rely on the fact that + if (tgi_getcolorcount() == 2) { printf("Only monochrome graphics is supported\n"); } @@ -269,7 +269,7 @@ if (num_colors == 0) { } else { tgi_setcolor(color % num_colors); } - + @@ -531,10 +531,10 @@ name="tgi_clear">/ after + tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it. tgi_init(); //Set up the default palette and clear the screen. - + @@ -558,10 +558,10 @@ used in presence of a prototype. , , - + tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it. tgi_init(); //Set up the default palette and clear the screen. - + @@ -607,7 +607,7 @@ be used in presence of a prototype. + #define tgi_sprite(spr) tgi_ioctl(0, (void*)(spr)) #define tgi_flip() tgi_ioctl(1, (void*)0) #define tgi_setbgcolor(bgcol) tgi_ioctl(2, (void*)(bgcol)) @@ -620,7 +620,7 @@ if (!tgi_busy()) { tgi_outttextxy(20,40,"Hello World"); tgi_updatedisplay(); } - + @@ -779,11 +779,11 @@ of range. , , - + /* Draw the closed upper half of an ellipse */ tgi_setcolor(TGI_COLOR_BLUE); tgi_pieslice (50, 50, 40, 20, 0, 180); - + @@ -834,12 +834,12 @@ be used in presence of a prototype. + tgi_setcolor(TGI_COLOR_BLACK); tgi_bar(0,0,30,30); tgi_setcolor(TGI_COLOR_WHITE); tgi_bar(10,10,20,20); - + @@ -861,7 +861,7 @@ be used in presence of a prototype. + tgi_setdrawpage(1); tgi_outtextxy(10, 10, "Hello World"); tgi_setviewpage(1); // Show page 1 @@ -869,7 +869,7 @@ tgi_setdrawpage(0); tgi_outtextxy(10, 10, "Creating next frame"); ... tgi_setviewpage(0); // Show page 0 - + @@ -973,7 +973,7 @@ be used in presence of a prototype. + tgi_setdrawpage(1); tgi_outtextxy(10, 10, "Hello World"); tgi_setviewpage(1); // Show page 1 @@ -981,7 +981,7 @@ tgi_setdrawpage(0); tgi_outtextxy(10, 10, "Creating next frame"); ... tgi_setviewpage(0); // Show page 0 - +