diff src/video/SDL_renderer_sw.c @ 1989:5b5f5de5433f

Optimized the copy blitters a little bit
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 14:10:46 +0000
parents 8055185ae4ed
children 7387e0514595
line wrap: on
line diff
--- a/src/video/SDL_renderer_sw.c	Mon Aug 28 04:39:37 2006 +0000
+++ b/src/video/SDL_renderer_sw.c	Mon Aug 28 14:10:46 2006 +0000
@@ -628,9 +628,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;