@paul,
please can you take a look.
i have different results, pc != android player.
i guess it is because power of two, but then i expect a error at createing a image with non power of 2 size.
at least it should say something about in online docu.
REM AGK v2.0.14b
REM MR
SetWindowSize(1280,720,0)
SetTransitionMode(0)
SetOrientationAllowed(0,0,1,1)
sync()
w#=GetDeviceWidth()
h#=GetDeviceheight()
r#= ( w# / h# )
SetVirtualResolution(100.0*r#,100.0)
SetDisplayAspect(r#)
imgrender=CreateRenderImage( GetVirtualWidth()*5.0,GetVirtualHeight()*5.0, 0, 1 )
sprrender=createsprite(imgrender)
setspritesize(sprrender,50,-1)
SetSpritePosition(sprrender,GetVirtualWidth()-10-GetSpriteWidth(sprrender),10)
SetClearColor(32,32,32)
Black=makecolor(0,128,0)
White=makecolor(255,255,255)
do
p("GetDeviceWidth",str(GetDeviceWidth()))
p("GetDeviceheight",str(GetDeviceheight()))
p("GetVirtualWidth",str(GetVirtualWidth()))
p("GetVirtualHeight",str(GetVirtualHeight()))
p("w#",str(w#,0))
p("h#",str(h#,0))
p("r#",str(r#,2))
if 1=1
SetRenderToImage( imgrender, 0 )
ClearScreen()
DrawBox(0,0,GetVirtualWidth(),GetVirtualHeight(),Black,Black,Black,Black,1)
Grid()
radius#=50.0 // GetVirtualHeight()/2.0*0.5
DrawEllipse(GetVirtualWidth()/2.0,GetVirtualHeight()/2.0,radius#,radius#,White,White,1)
Render()
SetRenderToScreen()
endif
if GetPointerPressed() then exit
sync()
loop
end
function p(d$,v$)
print(d$ + " : " + v$)
endfunction
function Grid()
Yellow=MakeColor(255,255,0)
mx#=GetVirtualWidth()/2.0
my#=GetVirtualHeight()/2.0
for x#=mx#-mx# to mx#+mx# step 10.0
DrawLine(x#,0,x#,GetVirtualHeight(),Yellow,Yellow)
next
for y#=my#-my# to my#+my# step 10.0
DrawLine(0,y#,GetVirtualWidth(),y#,Yellow,Yellow)
next
endfunction
AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)