mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 06:30:16 +00:00
Fixed the "verbatim" tags in the TGI document.
This commit is contained in:
parent
bc1e884988
commit
87144a15dd
52
doc/tgi.sgml
52
doc/tgi.sgml
@ -41,11 +41,11 @@ of range.
|
||||
<ref id="tgi_ellipse" name="tgi_ellipse">,
|
||||
<ref id="tgi_pieslice" name="tgi_pieslice">,
|
||||
<ref id="tgi_setcolor" name="tgi_setcolor">
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
/* Draw the upper half of an ellipse */
|
||||
tgi_setcolor(TGI_COLOR_BLUE);
|
||||
tgi_arc (50, 50, 40, 20, 0, 180);
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -66,10 +66,10 @@ be used in presence of a prototype.
|
||||
</itemize>
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi function
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
tgi_setcolor(TGI_COLOR_GREEN);
|
||||
tgi_bar(10, 10, 100, 60);
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -93,10 +93,10 @@ be used in presence of a prototype.
|
||||
<ref id="tgi_ellipse" name="tgi_ellipse">,
|
||||
<ref id="tgi_pieslice" name="tgi_pieslice">,
|
||||
<ref id="tgi_setcolor" name="tgi_setcolor">
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
tgi_setcolor(TGI_COLOR_BLACK);
|
||||
tgi_circle(50, 40, 40);
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -153,10 +153,10 @@ be used in presence of a prototype.
|
||||
<ref id="tgi_circle" name="tgi_circle">,
|
||||
<ref id="tgi_pieslice" name="tgi_pieslice">,
|
||||
<ref id="tgi_setcolor" name="tgi_setcolor">
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
tgi_setcolor(TGI_COLOR_RED);
|
||||
tgi_ellipse (50, 40, 40, 20);
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -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.
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
color = tgi_getcolor();
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -253,7 +253,7 @@ a 256). Or, it might rely on the fact that <tt/(unsigned char)/ will
|
||||
"wrap-around" when it is incremented beyond 255.
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions
|
||||
<tag/Examples/<verb>
|
||||
<tag/Examples/<tscreen><verb>
|
||||
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);
|
||||
}
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -531,10 +531,10 @@ name="tgi_clear">/ after <tt/tgi_init/.
|
||||
</itemize>
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions.
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
|
||||
tgi_init(); //Set up the default palette and clear the screen.
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -558,10 +558,10 @@ used in presence of a prototype.
|
||||
<ref id="tgi_load_driver" name="tgi_load_driver">,
|
||||
<ref id="tgi_uninstall" name="tgi_uninstall">,
|
||||
<ref id="tgi_unload" name="tgi_unload">
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
|
||||
tgi_init(); //Set up the default palette and clear the screen.
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -607,7 +607,7 @@ be used in presence of a prototype.
|
||||
</itemize>
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions.
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
#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();
|
||||
}
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -779,11 +779,11 @@ of range.
|
||||
<ref id="tgi_circle" name="tgi_circle">,
|
||||
<ref id="tgi_ellipse" name="tgi_ellipse">,
|
||||
<ref id="tgi_setcolor" name="tgi_setcolor">
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
/* Draw the closed upper half of an ellipse */
|
||||
tgi_setcolor(TGI_COLOR_BLUE);
|
||||
tgi_pieslice (50, 50, 40, 20, 0, 180);
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -834,12 +834,12 @@ be used in presence of a prototype.
|
||||
</itemize>
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions.
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
tgi_setcolor(TGI_COLOR_BLACK);
|
||||
tgi_bar(0,0,30,30);
|
||||
tgi_setcolor(TGI_COLOR_WHITE);
|
||||
tgi_bar(10,10,20,20);
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -861,7 +861,7 @@ be used in presence of a prototype.
|
||||
</itemize>
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions.
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
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
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
@ -973,7 +973,7 @@ be used in presence of a prototype.
|
||||
</itemize>
|
||||
<tag/Availability/cc65
|
||||
<tag/See also/Other tgi functions.
|
||||
<tag/Example/<verb>
|
||||
<tag/Example/<tscreen><verb>
|
||||
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
|
||||
</verb>
|
||||
</verb></tscreen>
|
||||
</descrip>
|
||||
</quote>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user