[SDL] converting 8bit surface to 32bit surface
Bill Kendrick
nbs at sonic.net
Tue Sep 25 01:23:58 PDT 2007
On Tue, Sep 25, 2007 at 02:34:15AM -0500, matt hull wrote:
> i was using them so i could easily change the palette, if i use a 32
> bit surface i would have to do more blits or color changes with each
> palette change.
Problem is, you're doing that ANYWAY, aren't you? (When you blit the
8bpp paletted surface over to your 32bpp RGB one.) Or, at least,
SDL_DisplayFormat() does it for you (and is, as you've found, a necessary
step).
Depending on what you're doing, you may want to rethink how you're using
the surfaces, and maybe do everything in the 32bpp surface...?
--
-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/
More information about the SDL
mailing list