]> git.sur5r.net Git - cc65/blobdiff - samples/tgidemo.c
make: change uppercase prefix var
[cc65] / samples / tgidemo.c
index 3329dd3ca258b670015de1a75efd2c05187dd93e..d8c2a6f50ce5610f22130463d20fc3d0caca8284 100644 (file)
@@ -5,20 +5,19 @@
 #include <ctype.h>
 #include <modload.h>
 #include <tgi.h>
-#include <tgi/tgi-kernel.h>
 
 
 
 #ifndef DYN_DRV
-#  define DYN_DRV      1
+#  define DYN_DRV       1
 #endif
 
-#define COLOR_BACK     TGI_COLOR_BLACK
-#define COLOR_FORE     TGI_COLOR_WHITE
+#define COLOR_BACK      TGI_COLOR_BLACK
+#define COLOR_FORE      TGI_COLOR_WHITE
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
@@ -31,7 +30,7 @@ static unsigned AspectRatio;
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -41,6 +40,9 @@ static void CheckError (const char* S)
     unsigned char Error = tgi_geterror ();
     if (Error != TGI_ERR_OK) {
         printf ("%s: %d\n", S, Error);
+        if (doesclrscrafterexit ()) {
+            cgetc ();
+        }
         exit (EXIT_FAILURE);
     }
 }