Colours are all wrong in SDL?

Hi there!

I’m anxious to play a game called PrBoom which uses SDL, so I downloaded
all the neccessary stuff and unpacked it. I have configured and compiled
SDL with SVGALib enabled and it compiles without any major warnings or
errors, and it also runs, but the colours are all wrong! They look as if
they were inverted, with blue and green and yellow all over the screen,
when it should be totally different colors. I know this because I
immediatelly tested the game which required it, and then I tested the
example-programs that comes with the SDL distribution and it’s the same
result. The funny thing is that it works perfectly under X, but I want
to be able to run it through the console using SVGALib!

Does anyone know a solution to this problem? I should mention that I’m
using Linux 2.2.16 on a Pentium 100 and that SVGALib works just fine
with other applications and games that uses it.

Any answers appreciated!

// David Karlgren

Does anyone know a solution to this problem? I should mention that I’m
using Linux 2.2.16 on a Pentium 100 and that SVGALib works just fine
with other applications and games that uses it.

There was an SVGALib palette fix in the SDL CVS code, can you check the
code at: http://www.libsdl.org/cvs.html
Make sure you uninstall all old versions of SDL before installing this.

Please let us know if that fixes the problem for you!

Thanks,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.