Page 1 of 1

[5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Sun May 18, 2014 2:01 pm
by heartbone

Code: Select all

LoadFont(1,"Arial",20,#PB_Font_Bold|#PB_Font_HighQuality)
If InitSprite()=0 : End : EndIf 
If OpenScreen(800,600,32," ")=0 : End : EndIf
StartDrawing(ScreenOutput())
DrawingFont(FontID(1))
DrawText(200,300,"YELLOW TEXT for 5 seconds",RGB(200,200,0))
StopDrawing()
FlipBuffers()
Delay(5000)
End
I get the top left 800x600 of my desktop displayed in full screen, not the expected screen display containing yellow text.
The code works as expected in the Windows OS.
For obvious reasons I'm hoping that it will fail for other UBUNTU 13.10 32 bit installations.
And if it does fail in other U13.10 installs, then I really need to know how the snippet runs in other Linux distros.

Re: [5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Sun May 18, 2014 10:20 pm
by heartbone
All of you guys not having so many problem with creating the graphics on your 64 bit rigs was leading me to suspect that there were problems somewhere in the 32 bit Linux.
However my suspicions were just quashed when a compiled executable of the above code executed fine on my daughter's system.
Her system is very similar system to mine, having the same processor running at the same speed, with the same amount of ram.
The significant difference is that she is using Raring (UBUNTU 13.04),
so it begins to look as if I may NEED to upgrade to Trusty (U14.04), :(
contingent on what other U13.10 users post here.
I dislike having to fix what ain't broke, and major OS upgrades have given me the blues.
I'd even locked down Firefox 28 ( sudo apt-mark hold firefox firefox-locale-en ) knowing the crap was about to hit the fan.

Re: [5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Mon May 19, 2014 12:50 pm
by LuCiFeR[SD]
Heartbone, just draw your text onto a sprite.

Re: [5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Mon May 19, 2014 1:00 pm
by luis
LuCiFeR[SD] wrote:Heartbone, just draw your text onto a sprite.
:?: Unless I'm mistaken the problem lamented here is the switch to fullscreen isn't happening.

From the description "I get the top left 800x600 of my desktop displayed in full screen" I guess the viewport is changed (reduced to 800x600) but the actual mode change doesn't kick in.

Re: [5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Mon May 19, 2014 1:06 pm
by LuCiFeR[SD]
haha, sorry, I actually posted this into the wrong thread (had two threads open) :). But, I definitely had quite a few issues with screens under ubuntu at one point... I think I worked around it by using a desktop sized borderless window+windowedscreen and autostretch... but that fix brings its own issues as autostretch doesn't work with 3D.

Re: [5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Tue May 20, 2014 7:07 am
by heartbone
I had to disable my RADEON graphics card a few months back because of possible power supply issues.
I just reactivated the card and the snippet runs just fine.
Although no error is reported, UBUNTU must get something wrong when booting after switching over to the onboard Intel graphics subsystem, because it sure does not like the PureBasic executables.
Everything else runs just fine with the Intel graphics configuration, although I'm not doing much graphically demanding with the system in Linux.

Please delete it or reclassify this thread under OS misconfiguration.
And I apologize for wasting your time. :oops:

Re: [5.22 LTS] OpenScreen() in UBUNTU 13.10 x86

Posted: Tue May 20, 2014 10:53 am
by luis
luis from other thread wrote:Can depend on so many things, maybe the xorg server specific to your graphic card, maybe doesn't happen with a closed binary driver from nvidia (my case)...
So changing the card and consequently some of the software substrate fixed it for now. :wink:

But that doesn't mean yet there is no bug. You should test another opengl program/game not written in PB, and see if it is able to switch to 800x600 fullscreen using the intel card. If it can, then PB should do it too, right ?

A good test can be made with http://sauerbraten.org/
It should be available on your Ubuntu's repository.
You can try various windowed and fullscreen resolutions easily with it, if it doesn't work probably it's better to forget all about this. :)