It's a bug of latest versions of DirectFB. If you use preallocated data you get such strange behavior. :(
http://mail.directfb.org/pipermail/directfb-dev/2008-October/004604.html 2008/11/27 Bajimohanreddy Bandi <[EMAIL PROTECTED]>: > Hi, > > I am creating surface like this > > g_bs = malloc(g_width * g_height * 4); > dsc.flags = DSDESC_CAPS | DSDESC_WIDTH | DSDESC_HEIGHT | > DSDESC_PREALLOCATED | DSDESC_PIXELFORMAT; > dsc.caps = DSCAPS_SYSTEMONLY; > dsc.width = g_width; > dsc.height = g_height; > dsc.pixelformat = DSPF_ARGB; > dsc.preallocated[0].data = g_bs; > dsc.preallocated[0].pitch = g_width * 4; > g_dfb->CreateSurface(g_dfb, &dsc, &g_s) > > if u use Blit function then its giving following errors: > :DirectFB/Genefx: Could not lock source! > --> Not supported! > :DirectFB/Genefx: Could not lock source! > --> Not supported! > can one help me to eliminate this error. > > Thanks > Mohan. > > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > > -- Best Regards Nikita Egorov [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users