changeset 1990:7b573c59cb1f

The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 17:34:50 +0000
parents 5b5f5de5433f
children 3863ba81c1d6
files src/video/dummy/SDL_nullrender.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/dummy/SDL_nullrender.c	Mon Aug 28 14:10:46 2006 +0000
+++ b/src/video/dummy/SDL_nullrender.c	Mon Aug 28 17:34:50 2006 +0000
@@ -466,9 +466,9 @@
                 copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA;
                 copydata.a = texture->a;
             }
-            if (texture->
-                blendMode & (SDL_TEXTUREBLENDMODE_MASK |
-                             SDL_TEXTUREBLENDMODE_BLEND)) {
+            if (texture->blendMode & SDL_TEXTUREBLENDMODE_MASK) {
+                copydata.flags |= SDL_RENDERCOPY_MASK;
+            } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_BLEND) {
                 copydata.flags |= SDL_RENDERCOPY_BLEND;
             } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) {
                 copydata.flags |= SDL_RENDERCOPY_ADD;