I was creating a window, kinda like a spash but I wanted to center it no mater what display rez the user was using...
here is the code..
set window on
hide window
set window layout 0,0,0
set window size 400,400
set window position 0,0
wait 1000
h=screen height()
w=screen width()
ww=400
wh=400
ch=h/2-wh/2
cw=w/2-ww/2
set window position cw,ch
set text size 24
print "Screen Height-"+str$(h)
print "Screen Width-"+str$(w)
print "Window Height-"+str$(wh)
print "Window Width-"+str$(ww)
show window
wait key
end
But for some reason, no matter what resolution im
running in, it always returns 640x480...
Is there something wrong im doing?