mirror of
https://github.com/cc65/cc65.git
synced 2024-09-26 12:55:17 +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:
parent
a0d53cff6b
commit
9bf3446060
@ -5,6 +5,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <modload.h>
|
#include <modload.h>
|
||||||
#include <tgi.h>
|
#include <tgi.h>
|
||||||
|
#include <tgi/tgi-kernel.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ static void DoCircles (void)
|
|||||||
tgi_line (0, MaxY, MaxX, 0);
|
tgi_line (0, MaxY, MaxX, 0);
|
||||||
tgi_setcolor (Color);
|
tgi_setcolor (Color);
|
||||||
for (I = 10; I < 240; I += 10) {
|
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;
|
Color = Color == COLOR_FORE ? COLOR_BACK : COLOR_FORE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user