i think about a borderless mode for my games but similar 100x100%
i don't like the black bars. it is a screen, why not use it too.
100x100% are allways visible and the rest is bonus.
rem
rem AGK Application 1.08B9
rem MR
rem Borderless
rem Landscape App
SetDisplayAspect( getdevicewidth()/getdeviceheight() )
if getdevicewidth()>getdeviceheight()
w#=getdevicewidth()
h#=getdeviceheight()
x#=(w#/h#)*100.0
setvirtualresolution(x#,100)
endif
if getdeviceheight()>getdevicewidth()
w#=getdevicewidth()
h#=getdeviceheight()
y#=(h#/w#)*100.0
setvirtualresolution(100,y#)
endif
if getdevicewidth()=getdeviceheight()
setvirtualresolution(100,100)
endif
imgback=GridImage()
sprback=createsprite(imgback)
setspritesize(sprback,getvirtualwidth(),getvirtualheight())
do
Print("hello window")
print(x#)
print(y#)
print(str(getdevicewidth()))
print(str(getdeviceheight()))
Sync()
loop
function GridImage()
setclearcolor(128,128,128)
clearscreen()
for x#=0.0 to getvirtualwidth() step 10.0
drawline(x#,0.0,x#,getvirtualheight(),255,255,255)
next
for y#=0.0 to getvirtualheight() step 10.0
drawline(0.0,y#,getvirtualwidth(),y#,255,255,255)
next
img=GetImage(0,0,getvirtualwidth(),getvirtualheight())
endfunction img