Page 1 of 1

640*480 not working in linux...

Posted: Mon Oct 11, 2004 2:23 am
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.

Posted: Mon Oct 11, 2004 2:29 am
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

Posted: Mon Oct 11, 2004 2:53 am
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.

Posted: Mon Oct 11, 2004 9:32 am
by Fred
Your 640*480 definition in X11 is probably wrong. IHMO, it's not a specific PB problem, but a general configuration one.

Fixed it

Posted: Sat Oct 30, 2004 6:09 am
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.

Posted: Sat Oct 30, 2004 5:19 pm
by freak
Good to hear :)