File diff r21363:d44cc377eeb3 → r21364:fc9d03d2e2b8
src/blitter/32bpp_anim_sse4.cpp
Show inline comments
 
@@ -313,6 +313,25 @@ bmcr_alpha_blend_single:
 
					if (src[0].a) anim[0] = 0;
 
				}
 
				break;
 

	
 
			case BM_CRASH_REMAP:
 
				for (uint x = (uint) bp->width; x > 0; x--) {
 
					if (src_mv->m == 0) {
 
						if (src->a != 0) {
 
							uint8 g = MakeDark(src->r, src->g, src->b);
 
							*dst = ComposeColourRGBA(g, g, g, src->a, *dst);
 
							*anim = 0;
 
						}
 
					} else {
 
						uint r = remap[src_mv->m];
 
						if (r != 0) *dst = ComposeColourPANoCheck(this->AdjustBrightness(this->LookupColourInPalette(r), src_mv->v), src->a, *dst);
 
					}
 
					src_mv++;
 
					dst++;
 
					src++;
 
					anim++;
 
				}
 
				break;
 
		}
 

	
 
next_line:
 
@@ -373,6 +392,7 @@ bm_normal:
 
			}
 
			break;
 
		case BM_TRANSPARENT:  Draw<BM_TRANSPARENT, RM_NONE, BT_NONE, true, true>(bp, zoom); return;
 
		case BM_CRASH_REMAP:  Draw<BM_CRASH_REMAP, RM_NONE, BT_NONE, true, true>(bp, zoom); return;
 
	}
 
}