comparison 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
comparison
equal deleted inserted replaced
1988:1ee02169bbb0 1989:5b5f5de5433f
626 } 626 }
627 if (texture->modMode & SDL_TEXTUREMODULATE_ALPHA) { 627 if (texture->modMode & SDL_TEXTUREMODULATE_ALPHA) {
628 copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA; 628 copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA;
629 copydata.a = texture->a; 629 copydata.a = texture->a;
630 } 630 }
631 if (texture-> 631 if (texture->blendMode & SDL_TEXTUREBLENDMODE_MASK) {
632 blendMode & (SDL_TEXTUREBLENDMODE_MASK | 632 copydata.flags |= SDL_RENDERCOPY_MASK;
633 SDL_TEXTUREBLENDMODE_BLEND)) { 633 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_BLEND) {
634 copydata.flags |= SDL_RENDERCOPY_BLEND; 634 copydata.flags |= SDL_RENDERCOPY_BLEND;
635 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) { 635 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) {
636 copydata.flags |= SDL_RENDERCOPY_ADD; 636 copydata.flags |= SDL_RENDERCOPY_ADD;
637 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_MOD) { 637 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_MOD) {
638 copydata.flags |= SDL_RENDERCOPY_MOD; 638 copydata.flags |= SDL_RENDERCOPY_MOD;