8-bit to 8-bit blits

If my main video surface is 8-bits deep, and I try to SDL_BlitSurface
from a different 8-bit surface (with a different color table) into the
main surface, nothing gets copied. But if I call SDL_DisplayFormat
first, it works fine.

Is this to be expected? Is there a more efficient way to blit between
8-bit surfaces than creating an intermediary surface?

Gregory

If my main video surface is 8-bits deep, and I try to SDL_BlitSurface
from a different 8-bit surface (with a different color table) into the
main surface, nothing gets copied. But if I call SDL_DisplayFormat
first, it works fine.

Is this to be expected? Is there a more efficient way to blit between
8-bit surfaces than creating an intermediary surface?

It should work. It sounds like one of the palettes is empty.

See ya,
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Sam Lantinga wrote:

If my main video surface is 8-bits deep, and I try to SDL_BlitSurface
from a different 8-bit surface (with a different color table) into the
main surface, nothing gets copied. But if I call SDL_DisplayFormat
first, it works fine.

Is this to be expected? Is there a more efficient way to blit between
8-bit surfaces than creating an intermediary surface?

It should work. It sounds like one of the palettes is empty.

I’m pretty sure they’re both set.

Gregory

I’m pretty sure they’re both set.

Try debugging it?

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Yeah, now that I know it should work, I’ll try to figure out why it’s
not. Weird thing is it does work in Linux, but not Windows. Figures,
I hate debugging in Windows.

GregoryOn Jun 25, 2006, at 11:18 PM, Sam Lantinga wrote:

I’m pretty sure they’re both set.

Try debugging it?

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment


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