Removed tgi_load() and all corresponding infrastructure. The idea behind tgi_load() was to be able to describe a TGI mode in a target-neutral way by resolution and colordepth. However it turned out that there arn't any cc65 targets sharing any resolution. As a result the only working target-independent approach for a TGI program is to call tgi_loaddriver(tgi_stddrv); and then look up the resolution provided - and to adapt to that resolution.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5016 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2011-05-02 10:38:48 +00:00
parent 97b950b8d8
commit 4aa00e84e1
48 changed files with 78 additions and 422 deletions

View File

@@ -38,9 +38,6 @@
#ifndef _TGI_MODE_H
#include <tgi/tgi-mode.h>
#endif
#ifndef _TGI_ERROR_H
#include <tgi/tgi-error.h>
#endif
@@ -64,9 +61,6 @@
/* 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;
/* A vector font definition */
typedef struct tgi_vectorfont tgi_vectorfont;
@@ -78,17 +72,8 @@ typedef struct tgi_vectorfont tgi_vectorfont;
void __fastcall__ tgi_load (unsigned char mode);
/* Load and install the matching driver for the given mode. Will just load
* the driver and check if loading was successul. Will not switch to gaphics
* 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.
*/
/* Load and install the given driver. */
void __fastcall__ tgi_unload (void);
/* Uninstall, then unload the currently loaded driver. Will call tgi_done if