View Single Post
Old 28th July 2004, 06:53   #214
fragmer
Senior Member
 
fragmer's Avatar
 
Join Date: May 2003
Posts: 101
how about an ultimate aspect ratio correction? :P
code:
[frame:]
wh=w/h; hw=h/w;
aspy=if(above(hw,wh),wh,1);
aspx=if(above(wh,hw),hw,1);

[somewhere in pixel:]
x=your_final_x*aspx;
y=your_final_y*aspy;


This way your squares will look square, and circles circular, at all window sizes, even wierd ones.

The really cool thing about this is that is matches the Trans/Movement's own aspect ratio fixing, so you can align complex movements and renderers easily :P
fragmer is offline   Reply With Quote