1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-22 18:29:30 +00:00

A first small step towards aspect ratio awareness.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5003 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2011-04-30 13:12:53 +00:00
parent a0d53cff6b
commit 9bf3446060

View 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;
}