]> git.sur5r.net Git - cc65/blobdiff - testcode/lib/atari5200/hello.c
atari5200: conio now uses just four colors altogether
[cc65] / testcode / lib / atari5200 / hello.c
index b2088461bc12b46557882d42aa9aadefdbe63150..18daf0bdfdbf9d7ff9a66f0024a62b34442c5753 100644 (file)
@@ -69,15 +69,15 @@ int main (void)
     gotoxy ((XSize - strlen (Text)) / 2, YSize / 2);
     cprintf ("%s", Text);
 
-    PosY = wherey () + 1;
+    PosY = wherey ();
     textcolor (0); /* switch to color #0 */
-    cputsxy(3, PosY++, "COLOR 0");
+    cputsxy(3, ++PosY, "COLOR 0");
     textcolor (1); /* switch to color #1 */
-    cputsxy(3, PosY++, "COLOR 1");
+    cputsxy(3, ++PosY, "COLOR 1");
     textcolor (2); /* switch to color #2 */
-    cputsxy(3, PosY++, "COLOR 2");
-    textcolor (3); /* switch to color #3 */
-    cputsxy(3, PosY, "COLOR 3");
+    cputsxy(3, ++PosY, "COLOR 2");
+    textcolor (3); /* switch to color #3 */ /* color #3 is the background color. So written text isn't visible. */
+    cputsxy(3, ++PosY, "COLOR 3");
 
 #if defined(__NES__) || defined(__PCE__) || defined(__GAMATE__) || defined(__ATARI5200__)