From fd1da994fa405549abafdbefdcd0a84262dcf83b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 12 Jul 2014 16:21:56 -0700 Subject: [PATCH] Fixed bug 2639 - SDL_BLENDMODE_BLEND not working properly for software renderer, thanks to Melker Narikka --- src/render/software/SDL_draw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/software/SDL_draw.h b/src/render/software/SDL_draw.h index ba2ec311c..fff462e6d 100644 --- a/src/render/software/SDL_draw.h +++ b/src/render/software/SDL_draw.h @@ -51,11 +51,12 @@ do { \ #define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \ do { \ - unsigned sr, sg, sb, sa; (void) sa; \ + unsigned sr, sg, sb, sa; \ getpixel; \ sr = DRAW_MUL(inva, sr) + r; \ sg = DRAW_MUL(inva, sg) + g; \ sb = DRAW_MUL(inva, sb) + b; \ + sa = DRAW_MUL(inva, sa) + a; \ setpixel; \ } while (0)