Skip to content

Commit

Permalink
Fix: don't use SSE translucency when animation is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Sep 28, 2022
1 parent fc257d2 commit 1e97ef1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/blitter/32bpp_sse_func.hpp
Expand Up @@ -438,6 +438,12 @@ void Blitter_32bppSSSE3::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Zoom
void Blitter_32bppSSE4::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom)
#endif
{
if (_screen_disable_anim) {
/* This means our output is not to the screen, so we must ignore any translucency stuff */
Draw<BM_NORMAL, RM_WITH_MARGIN, BT_NONE, false>(bp, zoom);
return;
}

switch (mode) {
default: {
if (bp->skip_left != 0 || bp->width <= MARGIN_NORMAL_THRESHOLD) {
Expand Down

0 comments on commit 1e97ef1

Please sign in to comment.