Hi,
I encountered a problem in my program (here is a example where the problem is isolated)
SetWindowSize( 1920, 1080, 1 )
SetVirtualResolution( 1920, 1080)
LoadImage(1,"map.jpg")
wid#=GetImageWidth(1)
hei#=GetImageHeight(1)
CreateSprite(1,1)
SetSpriteVisible(1,0)
xbo#=GetSpriteXByOffset(1)
ybo#=GetSpriteYByOffset(1)
do
Print(wid#)
Print(hei#)
Print(xbo#)
Print(ybo#)
Sync()
loop
To understand the problem, "map.jpg" has a resolution of 6144 x 6144 pixels (I know it's big)
when the line "Set Virtual resolution.." is enabled, the values are :
wid# = 6144
hei# = 6144
xbo# = 3072
ybo# = 3072
which are the expected values for me
But, when the line "Set Virtual resolution.." is disabled, (and i'm working with percentage mode in my program), the values are :
wid# = 6144
hei# = 6144
xbo# = 3072
ybo# = 4096
Did I miss something ?