Skip to content

Commit

Permalink
Fixed bug 2639 - SDL_BLENDMODE_BLEND not working properly for softwar…
Browse files Browse the repository at this point in the history
…e renderer, thanks to Melker Narikka
  • Loading branch information
slouken committed Jul 12, 2014
1 parent d1ca658 commit fd1da99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/software/SDL_draw.h
Expand Up @@ -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)

Expand Down

0 comments on commit fd1da99

Please sign in to comment.