Define a standard driver and mode for tgi graphics and use it in the sample

program. The standard driver and mode is the first one in the tgi_mode_table.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4153 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-09-11 18:59:37 +00:00
parent 569b8d0e77
commit 7de61e351c
10 changed files with 46 additions and 17 deletions

View File

@@ -6,10 +6,10 @@
/* */
/* */
/* */
/* (C) 2002-2004 Ullrich von Bassewitz */
/* R<EFBFBD>merstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* (C) 2002-2009, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
@@ -57,6 +57,12 @@
#define TGI_TEXT_HORIZONTAL 0
#define TGI_TEXT_VERTICAL 1
/* The name of the standard tgi driver for a platform */
extern const char tgi_stddrv[];
/* The default tgi mode for a platform */
extern const unsigned char tgi_stdmode;
/*****************************************************************************/
@@ -74,8 +80,7 @@ void __fastcall__ tgi_load (unsigned char mode);
void __fastcall__ tgi_load_driver (const char* name);
/* Load and install the given driver. This function is identical to tgi_load
* with the only difference that the name of the driver is specified
* explicitly. You should NOT use this function in most cases, use tgi_load()
* instead.
* explicitly.
*/
void __fastcall__ tgi_unload (void);