Il giorno mer, 12/03/2008 alle 14.08 +0900, Soohyung Cho ha scritto:
> Hi,
>  
> I created two sufaces (src_surface, dest_surface) with DSPF_A1
> pixelformat, same size.
> and did Blit between these two surfaces.
> But Nothing moved to dest_surface from src_surface.
>  
> ...
> desc.pixelformat = DSPF_A1;
>  
> dfb->CreateSurface(dfb, &desc, &src_surface);
> dfb->CreateSurface(dfb, &desc, &dest_surface);
>  
> src_surface->Lock(src_surface, DSLF_WRITE, ...);
> // copy my own data to src_surface
> ...
>  
> dest_surface->SetBlittingFlags(dest_surface, DSBLIT_NOFX);
> dest_surface->Blit(dest->surface, src_surface, NULL, 0, 0);
>  
> src_surface->Unlock(src_surface);
>  
>  
> Do I miss something?

You are not missing anything. Simply you are adding an useless Lock()
that prevents the Blit() from happening (Bliting/Drawing to a surface
while it's locked is not allowed).


-- 
Claudio Ciccani
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://directfb.org


_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to