If you want to just get it to work but have the colors wrong you can just add the following:
if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 8, 16, 0, 0 )) return DSPF_RGB24 There is NO DSPF_BGR24. This would need to be defined and support for it would have to be added. By accepting the format as valid (above code snippet) you are telling directfb the valid mode is DSPF_RGB24. However for your board and mine this is incorrect as the real format is BGR24. If your board can configure te frambuffer to be RGB24 you can get the colors correct. Craig On Saturday 19 January 2008 3:38:59 am Marco wrote: > Denis Oliver Kropp ha scritto: > > Craig Matsuura wrote: > >> I figure I can't just fix the offsets. > >> > >> case 24: > >> if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 0, 16, > >> 8, 0 )) > >> return DSPF_RGB24; > >> > >> > >> The return value appears to return the bit depth and format. I would > >> assume a DSPF_BGR24 needs to be defined? If so what other places should > >> I change? > > > > Yes, you can grep for DSPF_RGB24 to get a list of places. > > so I should also add the following ? > > if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 8, 16, 0, 0 )) > return DSPF_BGR24; > > > /marco > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users