# HG changeset patch # User Sam Lantinga # Date 1156786490 0 # Node ID 7b573c59cb1f036e85e6995268b378d6f4ad0ee6 # Parent 5b5f5de5433f5671bfedaad2d822488166284fca The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here... diff -r 5b5f5de5433f -r 7b573c59cb1f 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;