]> git.sur5r.net Git - cc65/blobdiff - samples/hello.c
atari5200: implement bgcolor() and textcolor()
[cc65] / samples / hello.c
index 749a9d859e397f2d17969fdd7f5722bc5a51385a..255dccd001c2c084fcfc98f555a7797cec10b458 100644 (file)
@@ -34,11 +34,10 @@ int main (void)
 {
     unsigned char XSize, YSize;
 
-    /* Set screen colors, hide the cursor */
-    textcolor (COLOR_WHITE);
-    bordercolor (COLOR_BLACK);
-    bgcolor (COLOR_BLACK);
-    cursor (0);
+    /* Set screen colors */
+    (void) textcolor (COLOR_WHITE);
+    (void) bordercolor (COLOR_BLACK);
+    (void) bgcolor (COLOR_BLACK);
 
     /* Clear the screen, put cursor in upper left corner */
     clrscr ();
@@ -68,7 +67,7 @@ int main (void)
     gotoxy ((XSize - strlen (Text)) / 2, YSize / 2);
     cprintf ("%s", Text);
 
-#if defined(__NES__)
+#if defined(__NES__) || defined(__PCE__) || defined(__GAMATE__) || defined(__ATARI5200__)
 
     /* Wait for the user to press a button */
     joy_install (joy_static_stddrv);
@@ -78,7 +77,7 @@ int main (void)
 #else
 
     /* Wait for the user to press a key */
-    (void) cgetc ();
+    cgetc ();
 
 #endif