]> git.sur5r.net Git - cc65/commitdiff
Removed the tgi_header structure because it is of no use for C programs
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Nov 2004 11:32:49 +0000 (11:32 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Nov 2004 11:32:49 +0000 (11:32 +0000)
anyway, but needs maintainance.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3286 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/tgi/tgi-kernel.h

index d72bc4cb49f828274257efc328ec8293f52e9551..e7c02a25bda4c8e87d07fef9e02eeff0934f2a8e 100644 (file)
 
 
 
-/* A structure that describes the header of a graphics driver loaded into
- * memory.
- */
-typedef struct {
-
-    /* Data that describes the capabilities of the driver */
-    char                id[3];          /* Contains 0x74, 0x67, 0x69 ("tgi") */
-    unsigned char       version;        /* Interface version */
-    unsigned            xres;           /* X resolution */
-    unsigned            yres;           /* Y resolution */
-    unsigned char       colorcount;     /* Number of available colors */
-    unsigned char       pagecount;      /* Number of screens available */
-    unsigned char       res[6];         /* Reserved for extensions */
-
-    /* Jump vectors. Note that these are not C callable */
-    void*               install;        /* INSTALL routine */
-    void*               uninstall;      /* UNINSTALL routine */
-    void*               init;           /* INIT routine */
-    void*               done;           /* DONE routine */
-    void*              geterror;       /* GETERROR routine */
-    void*               control;        /* CONTROL routine */
-    void*               clear;          /* CLEAR routine */
-    void*               setviewpage;    /* SETVIEWPAGE routine */
-    void*               setdrawpage;    /* SETDRAWPAGE routine */
-    void*               setcolor;       /* SETCOLOR routine */
-    void*               setpalette;     /* SETPALETTE routine */
-    void*               getpalette;     /* GETPALETTE routine */
-    void*               getdefpalette;  /* GETDEFPALETTE routine */
-    void*               setpixel;       /* SETPIXEL routine */
-    void*               getpixel;       /* GETPIXEL routine */
-    void*               line;           /* LINE routine */
-    void*               bar;            /* BAR routine */
-    void*               circle;         /* CIRCLE routine */
-    void*               irq;            /* IRQ routine */
-
-} tgi_drv_header;
-
-
-
 /* TGI kernel variables */
-extern tgi_drv_header* tgi_drv;        /* Pointer to driver */
+extern void*                   tgi_drv;        /* Pointer to driver */
 extern unsigned char   tgi_error;      /* Last error code */
 extern unsigned char    tgi_gmode;      /* Flag: Graphics mode active */
 extern int              tgi_curx;       /* Current drawing cursor X */