shithub: cstory

Download patch

ref: 7c12e7817cfd69ecbc0bc330004adcc1ac1c7252
parent: 81eb438482f176526e7d4e0de6d21be49580a27a
author: Clownacy <[email protected]>
date: Mon Jul 15 20:37:31 EDT 2019

Use SDL_ALPHA_OPAQUE

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -213,7 +213,7 @@
 	if (red == 0 && green == 0 && blue == 0)
 		SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0);
 	else
-		SDL_SetRenderDrawColor(renderer, red, green, blue, 0xFF);
+		SDL_SetRenderDrawColor(renderer, red, green, blue, SDL_ALPHA_OPAQUE);
 
 	// Draw colour
 	SDL_SetRenderTarget(renderer, surface->texture);
@@ -229,7 +229,7 @@
 	RectToSDLRect(rect, &sdl_rect);
 
 	// Draw colour
-	SDL_SetRenderDrawColor(renderer, red, green, blue, 0xFF);
+	SDL_SetRenderDrawColor(renderer, red, green, blue, SDL_ALPHA_OPAQUE);
 	SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_NONE);
 	SDL_RenderFillRect(renderer, &sdl_rect);
 	SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);