The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2006 17:34:50 +0000
changeset 1990 7b573c59cb1f
parent 1989 5b5f5de5433f
child 1991 3863ba81c1d6
The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
src/video/dummy/SDL_nullrender.c
--- 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;