
Here's the code for the openscreen areas:
Code: Select all
If OpenScreen(tempWidth,tempHeight,DesktopDepth(0),program$)
ShowCursor_(1)
SetClassLong_(ScreenID(),#GCL_HCURSOR,LoadCursor_(0,#IDC_ARROW))
windowSprite = CreateSprite(#PB_Any,tempWidth,tempHeight)
;mouseSprite = LoadSprite(#PB_Any,"cursor.bmp")
;TransparentSpriteColor(mouseSprite,RGB(128,128,128))
Code: Select all
;ExamineMouse()
;DisplayTransparentSprite(mouseSprite,MouseX(),MouseY())
FlipBuffers()
ExamineKeyboard()
Delay(10)
Until KeyboardPushed(#PB_Key_Grave) And KeyboardPushed(#PB_Key_Escape)
FreeSprite(windowSprite)
;FreeSprite(mouseSprite)
CloseScreen()
ShowCursor_(0)
Should Flip Buffers be at the top of my loop, and ClearScreen at the bottom, or FlipBuffers at the bottom and ClearScreen at the top?