Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
This commit is contained in:
@@ -198,8 +198,8 @@ tgi_set_ptr:
|
||||
;----------------------------------------------------------------------------
|
||||
; void tgi_uninstall (void);
|
||||
; /* Uninstall the currently loaded driver but do not unload it. Will call
|
||||
; * tgi_done if necessary.
|
||||
; */
|
||||
; ** tgi_done if necessary.
|
||||
; */
|
||||
|
||||
_tgi_uninstall:
|
||||
jsr _tgi_done ; Switch off graphics
|
||||
|
||||
@@ -48,10 +48,10 @@
|
||||
void __fastcall__ tgi_arc (int x, int y, unsigned char rx, unsigned char ry,
|
||||
unsigned sa, unsigned ea)
|
||||
/* Draw an ellipse arc with center at x/y and radii rx/ry using the current
|
||||
* drawing color. The arc covers the angle between sa and ea (startangle and
|
||||
* endangle), which must be in the range 0..360 (otherwise the function may
|
||||
* bevave unextectedly).
|
||||
*/
|
||||
** drawing color. The arc covers the angle between sa and ea (startangle and
|
||||
** endangle), which must be in the range 0..360 (otherwise the function may
|
||||
** bevave unextectedly).
|
||||
*/
|
||||
{
|
||||
int x1, y1, x2, y2;
|
||||
unsigned char inc;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; void __fastcall__ tgi_ellipse (int x, int y, unsigned char rx, unsigned char ry);
|
||||
; /* Draw a full ellipse with center at x/y and radii rx/ry using the current
|
||||
; * drawing color.
|
||||
; */
|
||||
; ** drawing color.
|
||||
; */
|
||||
;
|
||||
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; unsigned tgi_getaspectratio (void);
|
||||
; /* Returns the aspect ratio for the loaded driver. The aspect ratio is an
|
||||
; * 8.8 fixed point value.
|
||||
; */
|
||||
; ** 8.8 fixed point value.
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; const unsigned char* tgi_getdefpalette (void);
|
||||
; /* Return the default palette. Will return NULL for drivers that do not
|
||||
; * support palettes.
|
||||
; */
|
||||
; ** support palettes.
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; unsigned char tgi_geterror (void);
|
||||
; /* Return the error code for the last operation. This will also clear the
|
||||
; * error.
|
||||
; */
|
||||
; ** error.
|
||||
; */
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; unsigned char tgi_getmaxcolor (void);
|
||||
; /* Return the maximum supported color number (the number of colors would
|
||||
; * then be getmaxcolor()+1).
|
||||
; */
|
||||
; ** then be getmaxcolor()+1).
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; unsigned tgi_getmaxx (void);
|
||||
; /* Return the maximum x coordinate. The resolution in x direction is
|
||||
; * getmaxx() + 1
|
||||
; */
|
||||
; ** getmaxx() + 1
|
||||
; */
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; unsigned tgi_getmaxy (void);
|
||||
; /* Return the maximum y coordinate. The resolution in y direction is
|
||||
; * getmaxy() + 1
|
||||
; */
|
||||
; ** getmaxy() + 1
|
||||
; */
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; const unsigned char* tgi_getpalette (void);
|
||||
; /* Return the current palette. Will return NULL for drivers that do not
|
||||
; * support palettes.
|
||||
; */
|
||||
; ** support palettes.
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
;-----------------------------------------------------------------------------
|
||||
; unsigned __fastcall__ tgi_gettextheight (const char* s);
|
||||
; /* Calculate the height of the text in pixels according to the current text
|
||||
; * style.
|
||||
; */
|
||||
; ** style.
|
||||
; */
|
||||
;
|
||||
|
||||
.proc _tgi_gettextheight
|
||||
|
||||
@@ -22,8 +22,8 @@ Text := ptr3
|
||||
;-----------------------------------------------------------------------------
|
||||
; unsigned __fastcall__ tgi_gettextwidth (const char* s);
|
||||
; /* Calculate the width of the text in pixels according to the current text
|
||||
; * style.
|
||||
; */
|
||||
; ** style.
|
||||
; */
|
||||
;
|
||||
; Result is strlen (s) * tgi_textmagw * tgi_fontsizex
|
||||
;
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
;-----------------------------------------------------------------------------
|
||||
; void __fastcall__ tgi_install_vectorfont (const tgi_vectorfont* font);
|
||||
; /* Install a vector font for use. More than one vector font can be loaded,
|
||||
; * but only one can be active. This function is used to tell which one. Call
|
||||
; * with a NULL pointer to uninstall the currently installed font.
|
||||
; */
|
||||
; ** but only one can be active. This function is used to tell which one. Call
|
||||
; ** with a NULL pointer to uninstall the currently installed font.
|
||||
; */
|
||||
;
|
||||
|
||||
.code
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
;
|
||||
; unsigned __fastcall__ tgi_ioctl (unsigned char code, void* data);
|
||||
; /* Call the driver specific control function. What this function does for
|
||||
; * a specific code depends on the driver. The driver will set an error
|
||||
; * for unknown codes or values.
|
||||
; */
|
||||
; ** a specific code depends on the driver. The driver will set an error
|
||||
; ** for unknown codes or values.
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; void __fastcall__ tgi_lineto (int x2, int y2);
|
||||
; /* Draw a line in the current drawing color from the graphics cursor to the
|
||||
; * new end point.
|
||||
; */
|
||||
; ** new end point.
|
||||
; */
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
|
||||
const tgi_vectorfont* __fastcall__ tgi_load_vectorfont (const char* name)
|
||||
/* Load a vector font into memory and return it. In case of errors, NULL is
|
||||
* returned and an error is set, which can be retrieved using tgi_geterror.
|
||||
* To use the font, it has to be installed using tgi_install_vectorfont.
|
||||
*/
|
||||
** returned and an error is set, which can be retrieved using tgi_geterror.
|
||||
** To use the font, it has to be installed using tgi_install_vectorfont.
|
||||
*/
|
||||
{
|
||||
static const char Magic[4] = {
|
||||
0x54, 0x43, 0x48, TGI_VF_VERSION
|
||||
@@ -108,10 +108,10 @@ const tgi_vectorfont* __fastcall__ tgi_load_vectorfont (const char* name)
|
||||
close (F);
|
||||
|
||||
/* Fix the offset pointers. When loaded, they contain numeric offsets
|
||||
* into the VectorOps, with the start of the VectorOps at offset zero.
|
||||
* We will add a pointer to the VectorOps to make them actual pointers
|
||||
* that may be used independently from anything else.
|
||||
*/
|
||||
** into the VectorOps, with the start of the VectorOps at offset zero.
|
||||
** We will add a pointer to the VectorOps to make them actual pointers
|
||||
** that may be used independently from anything else.
|
||||
*/
|
||||
V = (unsigned) &Font->vec_ops;
|
||||
for (I = 0; I < TGI_VF_CCOUNT; ++I) {
|
||||
Font->chars[I] += V;
|
||||
@@ -125,8 +125,8 @@ const tgi_vectorfont* __fastcall__ tgi_load_vectorfont (const char* name)
|
||||
|
||||
LoadError:
|
||||
/* Some sort of load problem. If the file is still open, be sure to
|
||||
* close it
|
||||
*/
|
||||
** close it
|
||||
*/
|
||||
if (F >= 0) {
|
||||
close (F);
|
||||
}
|
||||
|
||||
@@ -48,10 +48,10 @@
|
||||
void __fastcall__ tgi_pieslice (int x, int y, unsigned char rx, unsigned char ry,
|
||||
unsigned sa, unsigned ea)
|
||||
/* Draw an ellipse pie slice with center at x/y and radii rx/ry using the
|
||||
* current drawing color. The pie slice covers the angle between sa and ea
|
||||
* (startangle and endangle), which must be in the range 0..360 (otherwise the
|
||||
* function may behave unextectedly).
|
||||
*/
|
||||
** current drawing color. The pie slice covers the angle between sa and ea
|
||||
** (startangle and endangle), which must be in the range 0..360 (otherwise the
|
||||
** function may behave unexpectedly).
|
||||
*/
|
||||
{
|
||||
/* Draw an arc ... */
|
||||
tgi_arc (x, y, rx, ry, sa, ea);
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; void __fastcall__ tgi_setaspectratio (unsigned aspectratio);
|
||||
; /* Set a new aspect ratio for the loaded driver. The aspect ratio is an
|
||||
; * 8.8 fixed point value.
|
||||
; */
|
||||
; ** 8.8 fixed point value.
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; void __fastcall__ tgi_setpalette (const unsigned char* palette);
|
||||
; /* Set the palette (not available with all drivers/hardware). palette is
|
||||
; * a pointer to as many entries as there are colors.
|
||||
; */
|
||||
; ** a pointer to as many entries as there are colors.
|
||||
; */
|
||||
;
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
;-----------------------------------------------------------------------------
|
||||
; void __fastcall__ tgi_settextdir (unsigned char dir);
|
||||
; /* Set the direction for text output. dir is one of the TGI_TEXT_XXX
|
||||
; * constants.
|
||||
; */
|
||||
; ** constants.
|
||||
; */
|
||||
;
|
||||
|
||||
.proc _tgi_settextdir
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
; void __fastcall__ tgi_settextstyle (unsigned width, unsigned height,
|
||||
; unsigned char dir, unsigned char font);
|
||||
; /* Set the style for text output. The scaling factors for width and height
|
||||
; * are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
|
||||
; * dir is one of the TGI_TEXT_XXX constants. font is one of the TGI_FONT_XXX
|
||||
; * constants.
|
||||
; */
|
||||
; ** are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
|
||||
; ** dir is one of the TGI_TEXT_XXX constants. font is one of the TGI_FONT_XXX
|
||||
; ** constants.
|
||||
; */
|
||||
;
|
||||
|
||||
.proc _tgi_settextstyle
|
||||
@@ -36,8 +36,8 @@
|
||||
;-----------------------------------------------------------------------------
|
||||
; void __fastcall__ tgi_settextscale (unsigned width, unsigned height);
|
||||
; /* Set the scaling for text output. The scaling factors for width and height
|
||||
; * are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
|
||||
; */
|
||||
; ** are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
|
||||
; */
|
||||
|
||||
.proc _tgi_settextscale
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
;
|
||||
; void __fastcall__ tgi_vectorchar (const unsigned char* Ops);
|
||||
; /* Draw one character of the vector font at the current graphics cursor
|
||||
; * position using the current font magnification.
|
||||
; */
|
||||
; ** position using the current font magnification.
|
||||
; */
|
||||
;
|
||||
|
||||
.import imul16x16r32, umul16x16r32, negax, negeax
|
||||
|
||||
Reference in New Issue
Block a user