From: ol.sc
Date: Sat, 3 Oct 2009 11:10:26 +0000 (+0000)
Subject: Leveraged tgi_stddrv (like tgidemo).
X-Git-Tag: V2.13.0~8
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a84229dcaf5b110ca6cd316998529e5346fd6594;p=cc65
Leveraged tgi_stddrv (like tgidemo).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4312 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
diff --git a/samples/mandelbrot.c b/samples/mandelbrot.c
index 333fb65db..461001d58 100644
--- a/samples/mandelbrot.c
+++ b/samples/mandelbrot.c
@@ -14,11 +14,6 @@
/* 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_Y (tgi_getyres())
#define MAXCOL (tgi_getcolorcount())
@@ -97,7 +92,7 @@ int main (void)
/* Load the graphics driver */
cprintf ("initializing... mompls\r\n");
- tgi_load (GRAPHMODE);
+ tgi_load_driver (tgi_stddrv);
err = tgi_geterror ();
if (err != TGI_ERR_OK) {
cprintf ("Error #%d initializing graphics.\r\n%s\r\n",