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
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue