On Tue, Apr 24, 2007 at 04:24:39PM +0200, 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);

It's not clear from this code snippet but you may be missing this bit:

dsc.flags = DSDESC_PIXEFORMAT;

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

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

Reply via email to