From: ol.sc
Date: Sat, 30 Apr 2011 13:12:53 +0000 (+0000)
Subject: A first small step towards aspect ratio awareness.
X-Git-Tag: V2.13.3~457
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9bf3446060fe1200502a11c3b8eed49f301b9394;p=cc65
A first small step towards aspect ratio awareness.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5003 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
diff --git a/samples/tgidemo.c b/samples/tgidemo.c
index 8e663ae2c..3a042ef6f 100644
--- a/samples/tgidemo.c
+++ b/samples/tgidemo.c
@@ -5,6 +5,7 @@
#include
#include
#include
+#include
@@ -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;
}