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

@@ -7,11 +7,6 @@
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
# define TGI_MODE TGI_MODE_280_192_8
#else
# define TGI_MODE TGI_MODE_320_200_2
#endif
#define COLOR_BACK COLOR_BLACK
#define COLOR_FORE COLOR_WHITE
@@ -203,7 +198,7 @@ int main (void)
DoWarning ();
/* Load and initialize the driver */
tgi_load (TGI_MODE);
tgi_load_driver (tgi_stddrv);
CheckError ("tgi_load");
tgi_init ();
CheckError ("tgi_init");