Maelstrom: Fixed transparency for masked sprites

From 28a25685d34914e720a63eddd70952d7b6c4bd8b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 22 Oct 2011 00:07:07 -0400
Subject: [PATCH] Fixed transparency for masked sprites

---
 screenlib/SDL_FrameBuf.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
index fd5fa333..dfb23a9a 100644
--- a/screenlib/SDL_FrameBuf.cpp
+++ b/screenlib/SDL_FrameBuf.cpp
@@ -249,6 +249,9 @@ FrameBuf:: LoadImage(int w, int h, Uint8 *pixels, Uint8 *mask)
 	}
 
 	texture = LoadImage(w, h, artwork);
+	if ( mask ) {
+		SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
+	}
 	delete[] artwork;
 	return(texture);
 }