217
This is my full iPhone project (for iPad). Project settings are set to 1024x768 in GLBasic Project options. When compiled on Xcode - the following code fails to draw a solid rectangle around the border of the screen.
Any ideas why this is?
// --------------------------------- //
// Project: Test
// Start: Sunday, September 11, 2011
// IDE Version: 10.106
// SETCURRENTDIR("Media") // go to media files
DRAWLINE 0,0,1023,0, RGB (255, 255, 255) // Draw 1 pixel top border in White
DRAWLINE 0,767,1023,767, RGB (255, 255, 255) // Draw 1 pixel bottom border in White
DRAWLINE 0,0,0,767, RGB (255, 255, 255) // Draw 1 pixel left border in White
DRAWLINE 1023,0,1023,767, RGB (255, 255, 255) // Draw 1 pixel right border in White
SHOWSCREEN
SLEEP (4000)
This second version using DRAWRECT - this time for a 2 pixel border along the edge - also fails to draw the left hand edge:
// --------------------------------- //
// Project: Test
// Start: Sunday, September 11, 2011
// IDE Version: 10.106
// SETCURRENTDIR("Media") // go to media files
DRAWRECT 0,0,1023,2, RGB (255, 255, 255) // Draw 2 pixel top border in White
DRAWRECT 0,766,1023,2, RGB (255, 255, 255) // Draw 2 pixel bottom border in White
DRAWRECT 0,0,2,767, RGB (255, 255, 255) // Draw 2 pixel left border in White
DRAWRECT 1022,0,2,767, RGB (255, 255, 255) // Draw 2 pixel right border in White
SHOWSCREEN
SLEEP (4000)
My full code has rotation detection built into it and the weird thing is its either the top bar or the left bar that goes missing - depending on if the screen has been rotated upside down in landscape view or not..