[SDL] 8-bit to 8-bit blits

Gregory Smith wolfy at treellama.org
Sun Jun 25 20:05:45 PDT 2006


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





More information about the SDL mailing list