Code cleanup.
authorSunny Sachanandani <sunnysachanandani@gmail.com>
Thu, 22 Jul 2010 12:08:33 +0530
changeset 4614 a17de6a8f796
parent 4613 56b888179f95
child 4615 789483a20081
Code cleanup.
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;
         }