changeset 4614:a17de6a8f796

Code cleanup.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Thu, 22 Jul 2010 12:08:33 +0530
parents 56b888179f95
children 789483a20081
files src/video/x11/SDL_x11render.c
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }