640*480 not working in linux...

Advanced game related topics
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

640*480 not working in linux...

Post by GBeebe »

Hi, it's me again.

I'm experiencing a problem with my game in Linux.
Right now it's only a title and menu screen.
It works perfect in Windows.
It compiles in Linux without error, but when it's run my monitor displays a built in "Out of range" error. I've tried it on another monitor, and it just goes crazy - showing multiple screens spread out across the monitor meshed together with a scanlines effect.

Does anyone here have a suggestion that I can use to fix this?

Note: I have tried 8, 16, 24, & 32 bit with no luck, If i change it to 800*600 it works, but i want it in 640*480. PB's SetRefreshRate doesn't work in Linux.

Thanks again.
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Try ExamineScreenModes() and the associated commands to see if that
resulution is supported on the system.
(see the NextScreenMode() command in the help for an example)

If it is supported but still doesn't work, then i'm out of ideas.

Timo
quidquid Latine dictum sit altum videtur
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post by Codemonger »

I know absolutely zero about Linux but your monitor definately cannot cannot support the refresh rate the display mode is trying to set, maybe linux sdl uses last used refresh rate ?? maybe this thread should go in the Linux forum too, I imagine some linux users would have encountered this.
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Your 640*480 definition in X11 is probably wrong. IHMO, it's not a specific PB problem, but a general configuration one.
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

Fixed it

Post by GBeebe »

For some reason, my monitor (in linux) was set as a Dell. It's actually a Future Power monitor. I just changed it to Generic and my game works in linux now.
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Good to hear :)
quidquid Latine dictum sit altum videtur
Post Reply