I updated the patch in order to have the config at run time instead of compile 
time. New patch in attachment.

Now, you just need to specify the pixel format in .directfbrc file or with the 
following arg : --dfb:pixelformat=BGR555

Otherwise the colors will be wrong.

Cheers,

Guillaume





-------- Message d'origine--------
De: [EMAIL PROTECTED] de la part de GARDET Guillaume
Date: jeu. 17/04/2008 10:06
À: directfb-dev@directfb.org; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [directfb-dev] DirectFB 1.1.1 : patch for BGR555 pixelformat
 


Hi,

I wrote a patch to add support to BGR555 pixel format. There is only one thing 
which is not really good... The configuration is made at compilation time, not 
run time ! See fbdev.c in dfb_fbdev_set_mode function. I leave a /* FIXME */.

How could I fix it ?

If I do not do this, I have :
(*) FBDev/Mode: Switched to 240x320 (240x320) at 16 bit BGR555 (wanted RGB16).

instead of :
(*) FBDev/Mode: Switched to 240x320 (240x320) at 16 bit BGR555 (wanted BGR555).

and the colors are wrong !


You (Denis Oliver Kropp) can push this patch to git/cvs if you want.



Regards,

Guillaume






 

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to