Skip to content
Permalink
Browse files

Fixed bug 2639 - SDL_BLENDMODE_BLEND not working properly for softwar…

…e renderer, thanks to Melker Narikka
  • Loading branch information
slouken committed Jul 12, 2014
1 parent d1ca658 commit fd1da994fa405549abafdbefdcd0a84262dcf83b
Showing with 2 additions and 1 deletion.
  1. +2 −1 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)

0 comments on commit fd1da99

Please sign in to comment.