Re: [cc65] TGI pixel aspect ratio

From: Fatih Aygün <cyco1301yahoo.com>
Date: 2009-10-29 00:48:20
Hi,



** Groepaz wrote:

> To: cc65@musoftware.de
> the c64 has a pixel aspect ratio of 0.936:1 ...
> somehow it sounds overengineered to me to support that :)

I'm sure Atari pixels aren't exactly 1:1 either. And I suspect they 
are not consistent between PAL and NTSC. But 0.936:1 seems
close enough to 1:1. My thought is, yes, it would be overengineered :)
But again, even this can be supported: it can be given as 94:100, 
which will fit into two chars.

> good test to make sure weather this actually works: write a portable program 
> that draws a circle. a circle that's an actual circle and not an ellipse that 
> is :) (personally i don't see this working without lots of effort)

Why? Once the tgi_ellipse() function is available, it will be a simple
matter of: tgi_ellipse(x, y, parx * radius / maxpar, pary * radius / maxpar) where, 
for a 0.936:1 driver, parx is 100 and pary is 94 and maxpar is the largest
of the two, i.e. 100. (Don't get me wrong, I still think c64 should report a ratio
of 1:1).

** Oliver Schmidt wrote:

> Using then the ASPECT macro it took me a little as 2 (!) minutes to
> change 3dmaze to look like this on the C128

So, it _is_ useful in an actual program :)

Regards,
Fatih



      
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Oct 29 00:48:28 2009

This archive was generated by hypermail 2.1.8 : 2009-10-29 00:48:31 CET