From c2c45b5c579f7e6c9567003e709323ff1128f1a5 Mon Sep 17 00:00:00 2001 From: LittlePlanetCD Date: Wed, 3 Apr 2024 03:37:24 -0500 Subject: [PATCH] fix alpha issue --- RSDKv4/Drawing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RSDKv4/Drawing.cpp b/RSDKv4/Drawing.cpp index 916209c01..af3871cd8 100644 --- a/RSDKv4/Drawing.cpp +++ b/RSDKv4/Drawing.cpp @@ -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; @@ -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)