Color distortion with SDL 1.2.14 and/or OS X 10.6.1

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in both Pentagram and DOSBox.
Unfortunately MacPorts is providing a SVN snapshot from about a fortnight ago and current SVN doesn’t build again on OS X, so I can’t test with the bleeding edge.

The bug report for Pentagram is at https://sourceforge.net/tracker/?func=detail&aid=2862732&group_id=53819&atid=471706 (the background should be with normal colors)
The bug report for DOSBox http://vogons.zetafleet.com/viewtopic.php?t=23087
It seems that in both cases there is a problem with the color blue being eliminated somehow.

If that is of interest, the SVN SDL building error is
gcc -I/opt/local/include -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/main/macosx/SDLMain.m -o build/SDLMain.o
./src/main/macosx/SDLMain.m: In function ?CustomApplicationMain?:
./src/main/macosx/SDLMain.m:204: error: ?SDLApplication? undeclared (first use in this function)
./src/main/macosx/SDLMain.m:204: error: (Each undeclared identifier is reported only once
./src/main/macosx/SDLMain.m:204: error: for each function it appears in.)
make: *** [build/SDLMain.o] Error

Building SDL should be fixed now.

Do you have any simple steps for reproducing the color issue? I
haven’t seen it with any of the test programs.

Is it fullscreen only?

See ya!
–SamOn Wed, Oct 14, 2009 at 3:33 AM, Dominus wrote:

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in
both Pentagram and DOSBox.
Unfortunately MacPorts is providing a SVN snapshot from about a fortnight
ago and current SVN doesn’t build again on OS X, so I can’t test with the
bleeding edge.

The bug report for Pentagram is at
https://sourceforge.net/tracker/?func=detail&aid=2862732&group_id=53819&atid=471706
(the background should be with normal colors)
The bug report for DOSBox http://vogons.zetafleet.com/viewtopic.php?t=23087
It seems that in both cases there is a problem with the color blue being
eliminated somehow.

If that is of interest, the SVN SDL building error is
gcc -I/opt/local/include -I/opt/local/include -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/main/macosx/SDLMain.m -o build/SDLMain.o
./src/main/macosx/SDLMain.m: In function ?CustomApplicationMain?:
./src/main/macosx/SDLMain.m:204: error: ?SDLApplication? undeclared (first
use in this function)
./src/main/macosx/SDLMain.m:204: error: (Each undeclared identifier is
reported only once
./src/main/macosx/SDLMain.m:204: error: for each function it appears in.)
make: *** [build/SDLMain.o] Error


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Are the color issues fullscreen or windowed, or both?On Wed, Oct 14, 2009 at 10:21 PM, Sam Lantinga <@slouken> wrote:

Building SDL should be fixed now.

Do you have any simple steps for reproducing the color issue? ?I
haven’t seen it with any of the test programs.

Is it fullscreen only?

See ya!
–Sam

On Wed, Oct 14, 2009 at 3:33 AM, Dominus wrote:

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in
both Pentagram and DOSBox.
Unfortunately MacPorts is providing a SVN snapshot from about a fortnight
ago and current SVN doesn’t build again on OS X, so I can’t test with the
bleeding edge.

The bug report for Pentagram is at
https://sourceforge.net/tracker/?func=detail&aid=2862732&group_id=53819&atid=471706
(the background should be with normal colors)
The bug report for DOSBox http://vogons.zetafleet.com/viewtopic.php?t=23087
It seems that in both cases there is a problem with the color blue being
eliminated somehow.

If that is of interest, the SVN SDL building error is
gcc -I/opt/local/include -I/opt/local/include -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/main/macosx/SDLMain.m -o build/SDLMain.o
./src/main/macosx/SDLMain.m: In function ?CustomApplicationMain?:
./src/main/macosx/SDLMain.m:204: error: ?SDLApplication? undeclared (first
use in this function)
./src/main/macosx/SDLMain.m:204: error: (Each undeclared identifier is
reported only once
./src/main/macosx/SDLMain.m:204: error: for each function it appears in.)
make: *** [build/SDLMain.o] Error


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

So I did extensive testing on this on Mac OS X 10.4, 10.5, and 10.6 on
both Intel and PPC, both ATI and NVidia cards, and everything checked
out.

Now, with the latest release on Mac OS X the red and blue channels
have been swapped, but the screen pixel format reflects this, and you
shouldn’t run into any problems unless your application is making an
assumption about the order of the RGB channels.

See ya!On Wed, Oct 14, 2009 at 10:24 PM, Sam Lantinga <@slouken> wrote:

Are the color issues fullscreen or windowed, or both?

On Wed, Oct 14, 2009 at 10:21 PM, Sam Lantinga <@slouken> wrote:

Building SDL should be fixed now.

Do you have any simple steps for reproducing the color issue? ?I
haven’t seen it with any of the test programs.

Is it fullscreen only?

See ya!
–Sam

On Wed, Oct 14, 2009 at 3:33 AM, Dominus wrote:

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in
both Pentagram and DOSBox.
Unfortunately MacPorts is providing a SVN snapshot from about a fortnight
ago and current SVN doesn’t build again on OS X, so I can’t test with the
bleeding edge.

The bug report for Pentagram is at
https://sourceforge.net/tracker/?func=detail&aid=2862732&group_id=53819&atid=471706
(the background should be with normal colors)
The bug report for DOSBox http://vogons.zetafleet.com/viewtopic.php?t=23087
It seems that in both cases there is a problem with the color blue being
eliminated somehow.

If that is of interest, the SVN SDL building error is
gcc -I/opt/local/include -I/opt/local/include -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/main/macosx/SDLMain.m -o build/SDLMain.o
./src/main/macosx/SDLMain.m: In function ?CustomApplicationMain?:
./src/main/macosx/SDLMain.m:204: error: ?SDLApplication? undeclared (first
use in this function)
./src/main/macosx/SDLMain.m:204: error: (Each undeclared identifier is
reported only once
./src/main/macosx/SDLMain.m:204: error: for each function it appears in.)
make: *** [build/SDLMain.o] Error


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Are the color issues fullscreen or windowed, or both?

In windowed mode. When I run full screen on the recently updated sdl
pre release, it works fine.

However, most people I know who play the game http://globulation2.org
do so in windowed mode.

Can you please try Globulation 2 on the mac…

Regards
KieranOn Thu, Oct 15, 2009 at 6:24 PM, Sam Lantinga wrote:

Are the color issues fullscreen or windowed, or both?

On Wed, Oct 14, 2009 at 10:21 PM, Sam Lantinga wrote:

Building SDL should be fixed now.

Do you have any simple steps for reproducing the color issue? ?I
haven’t seen it with any of the test programs.

Is it fullscreen only?

See ya!
–Sam

On Wed, Oct 14, 2009 at 3:33 AM, Dominus wrote:

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in
both Pentagram and DOSBox.
Unfortunately MacPorts is providing a SVN snapshot from about a fortnight
ago and current SVN doesn’t build again on OS X, so I can’t test with the
bleeding edge.

The bug report for Pentagram is at
https://sourceforge.net/tracker/?func=detail&aid=2862732&group_id=53819&atid=471706
(the background should be with normal colors)
The bug report for DOSBox http://vogons.zetafleet.com/viewtopic.php?t=23087
It seems that in both cases there is a problem with the color blue being
eliminated somehow.

If that is of interest, the SVN SDL building error is
gcc -I/opt/local/include -I/opt/local/include -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/main/macosx/SDLMain.m -o build/SDLMain.o
./src/main/macosx/SDLMain.m: In function ?CustomApplicationMain?:
./src/main/macosx/SDLMain.m:204: error: ?SDLApplication? undeclared (first
use in this function)
./src/main/macosx/SDLMain.m:204: error: (Each undeclared identifier is
reported only once
./src/main/macosx/SDLMain.m:204: error: for each function it appears in.)
make: *** [build/SDLMain.o] Error


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Now, with the latest release on Mac OS X the red and blue channels
have been swapped, but the screen pixel format reflects this, and you
shouldn’t run into any problems unless your application is making an
assumption about the order of the RGB channels.

so it is rather an application problem of Pentagram and Dosbox?