I missed this one in my alut44 patch. Don't know if SDL even supports !=
8bpp but still this would keep the code identical with fbdev.
--
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
diff -urN DirectFB/src/core/sdl/primary.c DirectFB/src/core/sdl/primary.c
--- DirectFB/src/core/sdl/primary.c 2003-01-29 17:41:45.000000000 +0200
+++ DirectFB/src/core/sdl/primary.c 2003-03-21 22:21:13.000000000 +0200
@@ -538,7 +538,8 @@
DFBResult ret;
CorePalette *palette;
- ret = dfb_palette_create( 256, &palette );
+ ret = dfb_palette_create( 1 << DFB_BITS_PER_PIXEL( config->pixelformat ),
+ &palette );
if (ret)
return ret;