[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13687] trunk/blender/source/blender: Added another 2 checks for if an image has the premul flag set, 1 in the image
jmsoler at free.fr
jmsoler at free.fr
Thu Feb 14 15:40:21 CET 2008
Selon Joseph Eagar <joeedh at gmail.com>:
> Revision: 13687
> + /*respect image premul option*/
> + if (stackbuf->type==CB_RGBA && ima->flag & IMA_DO_PREMUL) {
> +
> + /*first duplicate stackbuf->rect, since it's just a pointer
> + to the source imbuf, and we don't want to change that.*/
> + stackbuf->rect = MEM_dupallocN(stackbuf->rect);
> +
> + /*premul the image*/
> + int i;
> + float *pixel = stackbuf->rect;
> +
Error C2143.
MSVC 8.0 does not like the location of the i and pixel variable.
That would be better at the beginning of the block.
jms
More information about the Bf-committers
mailing list