Transparency In Fullscreen

Alright, my transparent images just aren’t working in fullscreen. They work
fine in windowed mode however.

What happens in fullscreen (if they’re not animated) they just show the
image as if the transparency was never set. If they are animated, they show
a funky colors where the transparent color is supposed to be.

Here is a snippet of the code. No errors are returned:

e_temp = SDL_LoadBMP(“images/bar_energy.bmp”);
if(e_temp == NULL) {
LOG.WRITE(SDL_GetError());
exit(1);
}

if(SDL_SetColorKey(e_temp, SDL_SRCCOLORKEY|SDL_RLEACCEL,
SDL_MapRGB(e_temp->format, 0, 0, 255)) == -1) {
LOG.WRITE(SDL_GetError());
exit(1);
}

energy_bar = SDL_DisplayFormatAlpha(e_temp);
if(energy_bar == NULL) {
LOG.WRITE(SDL_GetError());
exit(1);
}
SDL_FreeSurface(e_temp);

That load just fine, no errors, I call a regular blit, and bwam. Works just
fine (so long as I am in windowed mode).
And I dislike the windowed mode because my game tends to run a bit sluggish
for an odd reason.

Please Help!
-Bryan Arant

“Bryan Arant” wrote:

Alright, my transparent images just aren’t working in fullscreen. They work
fine in windowed mode however.

This bug was recently fixed. Try a recent CVS snapshot