Dharma schrieb: > 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?
Please set the color key at the source. It's an exception of the "make settings at destination" rule, because it's way more convenient and makes more sense. Usually, SetSrcColorKey() is called right after loading the image. > Problem : *If I set the source color key as black the functionality of > DSBLIT_SRC_COLORKEY is working fine, * 0 is default :) -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
