Black screen

Just starting out? Need help? Post your questions and find answers here.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 593
Joined: Tue Jan 04, 2011 6:21 pm

Black screen

Post by SPH »

InitSprite()
OpenWindow(0,0,0,320,498,"Scrab",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 1, 1)
ClearScreen(0)
Delay(1000)
Why the screen is not black ?

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: Black screen

Post by BarryG »

The width and height are only 1 pixel. ;) Do this:

Code: Select all

InitSprite()
OpenWindow(0,0,0,320,498,"Scrab",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 320, 498)
ClearScreen(0)
Delay(2000)
Post Reply