Color to B&W

It just goes to show, it’s aways something.

I’ve been working on a presentation using SDL in which I animate the
movement of some logos. Up to this point in the development I’ve been
using a pure white background that I blit over the screen surface then
(re)draw all active surfaces because at some point or another some
graphics need to pass over or above other ones so the order of the
drawing is crucial.

Now that the logos are all in position and I have other things to do
with the blank area of the screen I’ve blitted all the logos to the
background so that I don’t have to keep redrawing them. All I do is
blit the background, when needed, to the screen surface. However, when
I do this the display shows up in black and white with shades of grey.
All surfaces have been converted to the same format, 32 bit color, when
the graphic is pulled in from its file.

Can anyone suggest why my display is coming out this way?

TIA,

Lilith

If I blit to the screen directly after having blitted the populated
background to it, the logo does appear in color. So the problem only
occurs when I blit the entire background to the screen. Since it was
originally all white it didn’t show before.

Thoughts?

Thanks,
Lilith

It just goes to show, it’s aways something.

I’ve been working on a presentation using SDL in which I animate the
movement of some logos. Up to this point in the development I’ve
been
using a pure white background that I blit over the screen surface
then
(re)draw all active surfaces because at some point or another some
graphics need to pass over or above other ones so the order of the
drawing is crucial.

Now that the logos are all in position and I have other things to do
with the blank area of the screen I’ve blitted all the logos to the
background so that I don’t have to keep redrawing them. All I do is
blit the background, when needed, to the screen surface. However,
when
I do this the display shows up in black and white with shades of
grey.
All surfaces have been converted to the same format, 32 bit color,
when>>> On 8/2/2006 at 1:06 PM, in message <44D0A340.C7C3.00AE.0>, “Lilith Calbridge” <@Lilith_Calbridge> wrote:
the graphic is pulled in from its file.

Can anyone suggest why my display is coming out this way?

TIA,

Lilith


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I took a different route on this to make sure that the screen surface
and the background surface were both of the same format. I simply
created the background surface by using SDL_ConvertSurface() to clone
all the attributes of the screen surface.

Still mysterious since they were both created using the same
parameters.

Lilith

If I blit to the screen directly after having blitted the populated
background to it, the logo does appear in color. So the problem
only
occurs when I blit the entire background to the screen. Since it
was
originally all white it didn’t show before.

Thoughts?

Thanks,
Lilith

It just goes to show, it’s aways something.

I’ve been working on a presentation using SDL in which I animate
the

movement of some logos. Up to this point in the development I’ve
been
using a pure white background that I blit over the screen surface
then
(re)draw all active surfaces because at some point or another some
graphics need to pass over or above other ones so the order of the
drawing is crucial.

Now that the logos are all in position and I have other things to
do

with the blank area of the screen I’ve blitted all the logos to the
background so that I don’t have to keep redrawing them. All I do
is>>> On 8/2/2006 at 2:33 PM, in message <44D0B7AA.C7C3.00AE.0>, “Lilith Calbridge” <@Lilith_Calbridge> wrote:

On 8/2/2006 at 1:06 PM, in message <44D0A340.C7C3.00AE.0>, “Lilith Calbridge” <@Lilith_Calbridge> wrote:
blit the background, when needed, to the screen surface. However,
when
I do this the display shows up in black and white with shades of
grey.
All surfaces have been converted to the same format, 32 bit color,
when
the graphic is pulled in from its file.

Can anyone suggest why my display is coming out this way?

TIA,

Lilith


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl