I have installed DirectFB on my ARM/IMX.

It works, but I have a problem with the colours. 

On my development computer (x86), I use the function
like this:
 primary->SetColor (primary, RED, GREEN, BLUE,
ALPHACHANNEL);

On my IMX, I have to use the function like this to
obtain the same colours :
primary->SetColor (primary, GREEN, BLUE, BLUE, RED);

It’s sure, I can use the function like this. The
problem is when I try to insert PNG pictures. 

By exemple, a red picture (FF0000FF = RED=FF,
GREEN=00, BLUE=00, ALPHACHANNEL=FF) become yellow
(GREEN=FF, BLUE=00, BLUE=00, RED=FF) !


Perhaps it’s a problem with the compatibility of the
ALPHACHANNEL
That’s why I give you the Init of my directFB :

  DFBSurfaceDescription dsc;
  DFBCHECK (DirectFBInit (&argc, &argv));
  DFBCHECK (DirectFBCreate (&dfb));
  DFBCHECK (dfb->SetCooperativeLevel (dfb,
DFSCL_FULLSCREEN));
  dsc.flags = DSDESC_CAPS;
  dsc.caps  = DSCAPS_PRIMARY | DSCAPS_FLIPPING;
  dfb->CreateSurface( dfb, &dsc, &primary );
  DFBCHECK (primary->GetSize (primary, &screen_width,
&screen_height));

And my directfbrc :
depth16
RGB16

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

Reply via email to