Skip to content

Commit

Permalink
fix alpha issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Apr 3, 2024
1 parent c1bddc2 commit c2c45b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RSDKv4/Drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int InitRenderDevice()
SCREEN_CENTERX = SCREEN_XSIZE / 2;
Engine.window = SDL_CreateWindow(gameTitle, SDL_WINDOWPOS_CENTERED_DISPLAY(CURRENT_DISP_SCREEN), SDL_WINDOWPOS_CENTERED_DISPLAY(CURRENT_DISP_SCREEN), SCREEN_XSIZE * Engine.windowScale,
SCREEN_YSIZE * Engine.windowScale, SDL_WINDOW_ALLOW_HIGHDPI | flags);

if (!Engine.window) {
PrintLog("ERROR: failed to create window!");
return 0;
Expand Down Expand Up @@ -3860,7 +3860,7 @@ void DrawSpriteAllEffect(int direction, int XPos, int YPos, int pivotX, int pivo
if ((flags & 3) == 0)
direction = FLIP_NONE;

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

if (alpha > 0xFF)
Expand Down

0 comments on commit c2c45b5

Please sign in to comment.