comparison 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
comparison
equal deleted inserted replaced
1989:5b5f5de5433f 1990:7b573c59cb1f
464 } 464 }
465 if (texture->modMode & SDL_TEXTUREMODULATE_ALPHA) { 465 if (texture->modMode & SDL_TEXTUREMODULATE_ALPHA) {
466 copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA; 466 copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA;
467 copydata.a = texture->a; 467 copydata.a = texture->a;
468 } 468 }
469 if (texture-> 469 if (texture->blendMode & SDL_TEXTUREBLENDMODE_MASK) {
470 blendMode & (SDL_TEXTUREBLENDMODE_MASK | 470 copydata.flags |= SDL_RENDERCOPY_MASK;
471 SDL_TEXTUREBLENDMODE_BLEND)) { 471 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_BLEND) {
472 copydata.flags |= SDL_RENDERCOPY_BLEND; 472 copydata.flags |= SDL_RENDERCOPY_BLEND;
473 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) { 473 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) {
474 copydata.flags |= SDL_RENDERCOPY_ADD; 474 copydata.flags |= SDL_RENDERCOPY_ADD;
475 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_MOD) { 475 } else if (texture->blendMode & SDL_TEXTUREBLENDMODE_MOD) {
476 copydata.flags |= SDL_RENDERCOPY_MOD; 476 copydata.flags |= SDL_RENDERCOPY_MOD;