1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Leveraged tgi_stddrv (like tgidemo).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4312 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2009-10-03 11:10:26 +00:00
parent cb5ce7da5a
commit a84229dcaf

View File

@ -14,11 +14,6 @@
/* Graphics definitions */ /* Graphics definitions */
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
# define GRAPHMODE TGI_MODE_280_192_8
#else
# define GRAPHMODE TGI_MODE_320_200_2
#endif
#define SCREEN_X (tgi_getxres()) #define SCREEN_X (tgi_getxres())
#define SCREEN_Y (tgi_getyres()) #define SCREEN_Y (tgi_getyres())
#define MAXCOL (tgi_getcolorcount()) #define MAXCOL (tgi_getcolorcount())
@ -97,7 +92,7 @@ int main (void)
/* Load the graphics driver */ /* Load the graphics driver */
cprintf ("initializing... mompls\r\n"); cprintf ("initializing... mompls\r\n");
tgi_load (GRAPHMODE); tgi_load_driver (tgi_stddrv);
err = tgi_geterror (); err = tgi_geterror ();
if (err != TGI_ERR_OK) { if (err != TGI_ERR_OK) {
cprintf ("Error #%d initializing graphics.\r\n%s\r\n", cprintf ("Error #%d initializing graphics.\r\n%s\r\n",