Page 1 of 1

Ubuntu 6.06 with PB

Posted: Tue Nov 14, 2006 7:40 pm
by MacGyver
Hello
i have Problems with the openwindowedscreen .
I have bad lags .
In the Compiler settings is opengl in use .
Otherwise the screen do not open .
Sorry fpr my bad English .
Here is the code .

Code: Select all

InitKeyboard()
InitMouse()
InitSprite()
UsePNGImageDecoder()
OpenWindow(0,0,0,800,600,"Pong MenĂ¼",#PB_Window_ScreenCentered | #PB_Window_BorderLess) 
OpenWindowedScreen(WindowID(0),0,0,800,600,1,0,0)
;OpenScreen(800,600,16,"TEST")
UsePNGImageDecoder()
Enumeration
#_bild
EndEnumeration
LoadSprite(#_bild ,"mouse.PNG",#PB_Any)
Repeat

ClearScreen(RGB(0,0,0))

ExamineKeyboard()
ExamineMouse()
mx    =  MouseX()
my    =  MouseY()
DisplaySprite(#_bild,mx,my)
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)
I hope you can help me .
Greet's MacGyver

Posted: Tue Nov 14, 2006 11:06 pm
by bembulak
Works great here on Mandriva 2006, Kernel 2.16, Gnome 2.10
Even with the OGL switched on - I do not see any difference.

Sorry.

Posted: Tue Nov 14, 2006 11:30 pm
by Nik
What ghraphics crad do you have, maybe the driver isn't correctly installed.

Posted: Tue Nov 14, 2006 11:42 pm
by Thalius
What does "glxinfo" say ?
Direct rendering: YES ?

Posted: Wed Nov 15, 2006 3:11 pm
by MacGyver
Card is correct installet
ATI Radeon 9200 Mobile .
Direct rendering : Yes