Played around with this tonight from both my Macintosh and from my iPhones and Galaxy TAB A. Does the AppGameKit have issues with drawing to the screen correctly? The reason I ask that is that I played around with Setting a Virtual Resolution to the Device, say my iPhone 7 Plus which is 1080x1920 and tried getting it to draw a box on the edge, 0,0 to 1080,1920. While I saw the lines on the left and the top of the screen, the bottom and the right side lines disappeared.
Same thing with the Galaxy TAB A. The iPhone 12 Max Pro has rounded corners so I realize that I won't see the entire rectangle at the corners but I should still see the sides going to the corners but still the same thing.
Ether this is a bug, maybe some kind of filtering that we can't control applied or what I can't tell.
Here is the code I was using, sWidth is the ScreenWidth, and sHeight is the ScreenHeight. The xOffSet and yOffset was for playing around trying to get the lines to show by adding a 1 or 2, or even a 10.
/ Project: Test
// Created: 21-06-03
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Test" )
sWidth = 1080
sHeight = 1920
xOffSet = 0
yOffSet = 0
SetVirtualResolution(sWidth,sHeight)
SetScissor(0, 0, 0, 0)
xDisplay = GetDeviceWidth()
yDisplay = GetDeviceHeight()
do
//DrawBox( 0, 0, sWidth, sHeight, MakeColor(0,255,0), MakeColor(0,255,0), MakeColor(0,255,0), MakeColor(0,255,0) ,0 )
Print(str(xDisplay) + " " + str(yDisplay))
DrawLine(0+xOffSet, 0 + yOffSet, sWidth - xOffSet, 0 + yOffSet, MakeColor(0,255,0), MakeColor(0,255,0))
DrawLine(0+xOffSet, 0 + yOffSet, 0 + xOffSet, sHeight - yOffSet, MakeColor(0,255,0), MakeColor(0,255,0))
DrawLine(0+xOffSet, sHeight - yOffSet, sWidth - xOffSet, sHeight - yOffSet, MakeColor(0,255,0), MakeColor(0,255,0))
DrawLine(sWidth - xOffSet, 0 + yOffSet, sWidth - xOffSet, sHeight - yOffSet, MakeColor(0,255,0), MakeColor(0,255,0))
DrawLine(0+xOffSet, 0 + yOffSet, sWidth - xOffSet, sHeight - yOffSet, MakeColor(255,255,255), MakeColor(255,255,255))
DrawLine(0+xOffSet, sHeight - yOffSet, sWidth - xOffSet, 0 + yOffSet, MakeColor(255,255,255), MakeColor(255,255,255))
Sync()
loop
@Virtual Nomad Thanks!
********Changing to 1079,1919 Resolved the Issue. This is why I insist on caffeinated coffee at all times, especially at night