Dharma wrote:
> Hi all,
>
> I have doubt in DSBLIT_SRC_COLORKEY. I have two surface
> called as primary and secondary surface. While Blitting (copying the
>
> Secondary surface into primary), I need to copy pixel that doesn’t match
> the source color key.
>
> I have done like the below.
>
> *ret = primary->SetBlittingFlags(primary,DSBLIT_SRC_COLORKEY); *
>
> *ret = primary->SetSrcColorKey(primary,0xFF,0x00,0x00); *
>
> *primary->Blit(primary,secondary,&rect,50,100);*
>
> * *
>
> is any thing wrong with the code?
>
secondary->SetSrcColorKey(secondary,0xFF,0x00,0x00);
SrcColorkey applies to the source.
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users