Hi,
the problem is not in the directfb. I think that the problem is in the 
platform data of the imx display. You send the image to the display in 
wrong format.
Regards Michael


Chris Cran wrote:
> Hello Everybody
>
> I have a little problem with DirectFB on my IMX21
>
> The colours on my touchscreen are bad
> I have test to make a "Dump", and the colour on the
> file.ppm are good
>
> So, I am sure that my problem is when I trie to put my
> surface on my screen.
>
> So, I have tried to select the PixelFormat, but I have
> a problem. See yourself :
>
> this is my code :
>
>   dsc.pixelformat = DSPF_RGB16;
>   printf("dsc.pixelformat = %d\n",dsc.pixelformat);
>   dfb->CreateSurface( dfb, &dsc, &primary );;
>   primary->GetPixelFormat(primary, pixform);
>   printf("pixelformat for me  = %d\n",*pixform);
>   printf("pixel_format RGB16 = %d\n",DSPF_RGB16);
>
> and this is the result :
>
>   dsc.pixelformat = 2099201
>   pixelformat for me  = 2180626
>   pixel_format RGB16 = 2099201
>
> I would like to know why I can configure my dsc to use
> RGB16 a pixelformat, but this value is not used when I
> create my primary.
>
> Could you help me ?
>
> Thank you very much.
>
> Chris 
>
>
> Chris
>
>
>       
> ___________________________________________________________________________ 
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
> Profitez des connaissances, des opinions et des expériences des internautes 
> sur Yahoo! Questions/Réponses 
> http://fr.answers.yahoo.com
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>   


_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to