# HG changeset patch # User Sunny Sachanandani # Date 1279780713 -19800 # Node ID a17de6a8f7969d96ef26da82979fa77d06973f06 # Parent 56b888179f9505bf1284e772e41a502a04c2a1eb Code cleanup. diff -r 56b888179f95 -r a17de6a8f796 src/video/x11/SDL_x11render.c --- a/src/video/x11/SDL_x11render.c Thu Jul 22 11:55:32 2010 +0530 +++ b/src/video/x11/SDL_x11render.c Thu Jul 22 12:08:33 2010 +0530 @@ -1000,10 +1000,6 @@ return 0; } case SDL_BLENDMODE_MOD: - if (renderdata->use_xrender) { - data->blend_op = PictOpOver; - return 0; - } case SDL_BLENDMODE_MASK: case SDL_BLENDMODE_BLEND: if (renderdata->use_xrender) { @@ -1765,15 +1761,18 @@ Picture mask; XRenderPictureAttributes attr; const SDL_Rect *mrect; - if(texture->blendMode == SDL_BLENDMODE_NONE) { + if(texture->blendMode == SDL_BLENDMODE_NONE) + { mask = None; mrect = srcrect; } - else if (texture->blendMode == SDL_BLENDMODE_MOD) { + else if (texture->blendMode == SDL_BLENDMODE_MOD) + { mask = data->stencil_pict; - mrect = dstrect; + mrect = dstrect; } - else { + else + { mask = texturedata->picture; mrect = srcrect; }