]> git.sur5r.net Git - cc65/blobdiff - samples/tgidemo.c
A first small step towards aspect ratio awareness.
[cc65] / samples / tgidemo.c
index 8e663ae2c707ed175162d9b08abdca2df772e2cb..3a042ef6f57948ed8782f9be121ae652daa65c10 100644 (file)
@@ -5,6 +5,7 @@
 #include <ctype.h>
 #include <modload.h>
 #include <tgi.h>
+#include <tgi/tgi-kernel.h>
 
 
 
@@ -70,7 +71,7 @@ static void DoCircles (void)
         tgi_line (0, MaxY, MaxX, 0);
         tgi_setcolor (Color);
         for (I = 10; I < 240; I += 10) {
-            tgi_circle (X, Y, I);
+            tgi_ellipse (X, Y, I, tgi_imulround (I, tgi_aspectratio));
         }
        Color = Color == COLOR_FORE ? COLOR_BACK : COLOR_FORE;
     }