I am getting a strange bug in Windows 10 using the latest version of AppGameKit on Steam. The window seems to go past the border. This also seems to be offsetting the pointer position.
Test code:
// Project: Test
// Created: 2018-04-11
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Test" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
RED = MakeColor(255, 0, 0)
do
Print( ScreenFPS() )
Print( "Where is the FPS??" )
DrawEllipse(GetPointerX(), GetPointerY(), 30, 30, RED, RED, 0)
Sync()
loop
You can't see it from the image but the red circle is not centered on the mouse position as would be expected.
Using AppGameKit V2 Tier 1