On Fri, Nov 28, 2008 at 12:41:16AM +0530, Bajimohanreddy Bandi wrote: > 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.
Hmm. Does it work if you remove DSCAPS_SYSTEMONLY? -- Ville Syrjälä [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users