TGI Implementation

git-svn-id: svn://svn.cc65.org/cc65/trunk@1314 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-06-21 14:16:32 +00:00
parent 2614d20153
commit 7fc24b058a
8 changed files with 103 additions and 5 deletions

View File

@@ -88,7 +88,9 @@ void __fastcall__ tgi_done (void);
/* End graphics mode, switch back to text mode. Will NOT unload the driver! */
unsigned char __fastcall__ tgi_geterror (void);
/* Return the error code for the last operation. */
/* Return the error code for the last operation. This will also clear the
* error.
*/
void __fastcall__ tgi_clear (void);
/* Clear the screen */
@@ -140,7 +142,7 @@ void __fastcall__ tgi_lineto (int x2, int y2);
* new end point.
*/
void __fastcall__ tgi_circle (int x, int y, unsigned radius);
void __fastcall__ tgi_circle (int x, int y, unsigned char radius);
/* Draw a circle in the current drawing color */
void __fastcall__ tgi_outtext (int x, int y, const char* text);

View File

@@ -62,7 +62,7 @@ typedef struct {
void* install; /* INSTALL routine */
void* deinstall; /* DEINSTALL routine */
void* init; /* INIT routine */
void* post; /* POST routine */
void* done; /* DONE routine */
void* control; /* CONTROL routine */
void* clear; /* CLEAR routine */
void* setcolor; /* SETCOLOR routine */
@@ -79,6 +79,7 @@ typedef struct {
/* TGI kernel variables */
extern tgi_drv_header tgi_drv; /* Pointer to driver */
extern unsigned char tgi_error; /* Last error code */
extern unsigned char tgi_mode; /* Graphics mode or zero */
@@ -98,3 +99,4 @@ const char* __fastcall__ tgi_map_mode (unsigned char mode);