Mercurial > sdl-ios-xcode
diff src/video/dummy/SDL_nullrender.c @ 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 | 8055185ae4ed |
children | 7387e0514595 |
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;