I am making a windowed program that is 480x800 pixels for something I am testing out. I got the 3D objects to look right with the Set Camera Aspect function. Is there an equivalent to the 2D screen? When I am in windowed mode square images that I am pasting to the screen are not square, they are squished quite a bit. I'm really stumped on this and here's the code:
//set display mode 480, 800, 32
set window on
set window size 480, 800
set window position 700, 75
SET WINDOW LAYOUT 4, 0, 0
autocam off
set camera aspect .7
`backdrop on
`color backdrop rgb(0,0,200)
set ambient light 25
set camera range 0, 1, 100000
position camera 0, 0, 0, 50
point camera 0, 0, 0, 0
make object sphere 5, 250, 15, 30
position object 5, 0, 0, -450
make object sphere 1, -1000, 15, 30
position object 1, 0, 0, -350
x as float
//dxs initialize
load image "world_grid.jpg", 1
load image "planet1.bmp", 2
load image "skysphere.png", 3
texture object 5, 1
SET OBJECT SMOOTHING 5, 100
texture object 1, 3
set object light 1, 0
set object texture 5, 1, 1
while escapekey()=0
text 0, 0, str$(screen fps())
x=x+.05
yrotate object 5, x
xrotate object 5, x*-.25
paste image 2, 100, 100, 1
endwhile