Fixed bug 2639 - SDL_BLENDMODE_BLEND not working properly for software renderer, thanks to Melker Narikka
parent
d1ca658c45
commit
fd1da994fa
|
@ -51,11 +51,12 @@ do { \
|
||||||
|
|
||||||
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \
|
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \
|
||||||
do { \
|
do { \
|
||||||
unsigned sr, sg, sb, sa; (void) sa; \
|
unsigned sr, sg, sb, sa; \
|
||||||
getpixel; \
|
getpixel; \
|
||||||
sr = DRAW_MUL(inva, sr) + r; \
|
sr = DRAW_MUL(inva, sr) + r; \
|
||||||
sg = DRAW_MUL(inva, sg) + g; \
|
sg = DRAW_MUL(inva, sg) + g; \
|
||||||
sb = DRAW_MUL(inva, sb) + b; \
|
sb = DRAW_MUL(inva, sb) + b; \
|
||||||
|
sa = DRAW_MUL(inva, sa) + a; \
|
||||||
setpixel; \
|
setpixel; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue