From: cuz Date: Sun, 7 Nov 2004 11:32:49 +0000 (+0000) Subject: Removed the tgi_header structure because it is of no use for C programs X-Git-Tag: V2.12.0~549 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6ab41edc72418646c9512cd28d01474bd47ff6d9;p=cc65 Removed the tgi_header structure because it is of no use for C programs anyway, but needs maintainance. git-svn-id: svn://svn.cc65.org/cc65/trunk@3286 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/tgi/tgi-kernel.h b/include/tgi/tgi-kernel.h index d72bc4cb4..e7c02a25b 100644 --- a/include/tgi/tgi-kernel.h +++ b/include/tgi/tgi-kernel.h @@ -44,47 +44,8 @@ -/* 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 */