[GEM-dev] ortho and window size bug or feature?

B. Bogart ben at ekran.org
Thu Feb 5 23:07:35 CET 2004


Hey gem devs,

I noticed something a little odd the other day. I usually work with 
square windows, but have been tinkering with *gasp* video aspect ratio's 
lately.

If I have a 480x480 window with a square of size 4 the square fills the 
screen.
If I have a 480x480 window with a square of size 4 w/ ortho the square 
fills the screen.

If I have a 640x480 window with a square of size 4 the square does not 
fill the screen
If I have a 640x480 window with a square of size 4 w/ ortho the square 
does fill the screen

In other words is using ortho it seems that the object is streched to 
fill the whole window, so if a square is 4x4 it will actually fill a 
screen that is non-square, distorting the square..

This may just be a reault of how ortho works?

I use ortho in an abstraction to make 2D layering easier, but it does 
not work so well with non-square windows due to distortion.

I'm using gemCVS on linux and OSX.

B.





More information about the GEM-dev mailing list