Hello
When i use CopyImage with SetDisplayAspect set to -1, there is a scale problem under Windows.
// Project: CopyImage possible error under Windows
// Created: 2016-05-26
// set window properties
SetWindowTitle( "Error" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 800, 600 )
SetDisplayAspect(-1)
SetOrientationAllowed( 0, 0, 1, 1 )
SetClearColor(0, 0, 0)
// Prepare an image
SetPrintColor(255, 0, 0)
Print(" Hello, world !")
Render()
GetImage(1, 0, 0, 800, 600)
CreateSprite(1, 1)
SetSpritePosition(1, 0, 0)
SetSpriteSize(1, 800, 600)
SetSpriteTransparency(1, 0)
SetPrintColor(255, 255, 255)
do
Print("No problem here")
Sync()
if GetPointerPressed() = 1 then exit
loop
// CopyImage seems to change the scale of the screen
CopyImage(2, 1, 0, 0, 800, 600)
SetSpriteImage(1, 2)
//SetSpritePosition(1, 0, 0)
//SetSpriteSize(1, 800, 600)
do
Print("Problem is here")
Print("Sprite is scaled ?")
Sync()
if GetPointerPressed() = 1 then exit
loop
end
My Freewares here : http://www.retro-bruno.com