So I have related problems like this that I posted several months ago. I also changed the order of the bit offsets for the colors and now things work, but the colors are off (R and B are swapped). What is the suggest way to correct the R and B swapped values?
Craig On Tuesday 12 February 2008 3:46:04 pm Denis Oliver Kropp wrote: > Marco Cavallini wrote: > > Denis Oliver Kropp ha scritto: > >> Marco Cavallini [KOAN] wrote: > >>> Denis Oliver Kropp ha scritto: > >>>> diff -urNp DirectFB-1.1.1-orig/systems/fbdev/fbdev.c > >>>> DirectFB-1.1.1-bgr24/systems/fbdev/fbdev.c > >>>> --- DirectFB-1.1.1-orig/systems/fbdev/fbdev.c 2008-01-18 > >>>> 21:29:37.000000000 +0100 > >>>> +++ DirectFB-1.1.1-bgr24/systems/fbdev/fbdev.c 2008-02-09 > >>>> 11:49:32.000000000 +0100 > >>>> @@ -1505,9 +1505,11 @@ static DFBSurfacePixelFormat dfb_fbdev_g > >>>> break; > >>>> > >>>> case 24: > >>>> - if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 0, > >>>> 16, 8, 0 )) > >>>> + if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 0, 16, > >>>> 8, 0 )) > >>>> return DSPF_RGB24; > >>>> - > >>>> + if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 8, 16, 0, > >>>> 0 )) // BGR24 (MCK) > >>>> > >>>> > >>>> =======> What does fbset -i tell you? > >>> > >>> # fbset -i > >>> > >>> mode "320x240-58" > >>> # D: 6.220 MHz, H: 14.201 kHz, V: 57.963 Hz > >>> geometry 320 240 320 240 24 > >>> timings 160771 68 20 1 1 30 3 > >>> accel false > >>> rgba 8/0,8/8,8/16,0/0 > >>> endmode > >> > >> Then your code was wrong and Ville is right :) > > > > Thank you all for your support and for answering :-) > > BTW I'm quite puzzled and I don't understand what Ville wanted to mean. > > Could you be so kind to explain me what do I have to do then ? > > Use this instead: > > dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 0, 0, 8, 16 ) _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev