Skip to content

Commit

Permalink
Sprite FX bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElspethThePict committed Dec 14, 2023
1 parent 48685fd commit 593a49f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions RSDKv4/Drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3851,15 +3851,18 @@ void DrawSpriteAllEffect(int direction, int XPos, int YPos, int pivotX, int pivo
{
#if RETRO_SOFTWARE_RENDER
//check flags
if (flags && FX_INK == 0)
if ((flags & FX_INK) == 0)
ink = INK_NONE;
if (flags && FX_SCALE == 0)
if ((flags & FX_SCALE) == 0)
scale = 0x200;
if (flags && FX_ROTATE == 0)
if ((flags & FX_ROTATE) == 0)
rotation = 0;
if (flags && 3 == 0)
if ((flags & 3) == 0)
direction = FLIP_NONE;

if ((ink > INK_NONE) && (alpha == 0))
return;

if (alpha > 0xFF)
alpha = 0xFF;

Expand Down

0 comments on commit 593a49f

Please sign in to comment.