OpenWindowedScreen() doesn't work
Posted: Thu Feb 22, 2007 12:43 am
Running the following code
under Ubuntu 6.10 with Linux-PB 4.0 Beta 3 creates a window named "Test" without any content of size 600, 400, and another seperate one of size 1024x768 without a title where the drawings are made to.
Running the examples from the help for OpenWindowedScreen has the same behaviour.
I have all the recommended libs installed via aptitude as mentioned here: http://www.purebasic.fr/english/viewtopic.php?t=23622
Anybody an idea, or can confirm ?
Code: Select all
OpenWindow(0, 0, 0, 600, 400, "Test")
OpenWindowedScreen(WindowID(0), 0, 0, 1024, 768, 1, 0, 0)
While WindowEvent() <> #PB_Event_CloseWindow
StartDrawing(ScreenOutput())
Box(Random(1000), Random(1000), Random(1000), Random(1000), Random($7FFFFFFF))
StopDrawing()
FlipBuffers()
Delay(10)
Wend
Running the examples from the help for OpenWindowedScreen has the same behaviour.
I have all the recommended libs installed via aptitude as mentioned here: http://www.purebasic.fr/english/viewtopic.php?t=23622
Anybody an idea, or can confirm ?