src/render/software/SDL_draw.h
changeset 9007 515be38f3f37
parent 8149 681eb46b8ac4
child 9014 795fb603eda8
equal deleted inserted replaced
9006:98c808d72e20 9007:515be38f3f37
    49     setpixel; \
    49     setpixel; \
    50 } while (0)
    50 } while (0)
    51 
    51 
    52 #define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \
    52 #define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \
    53 do { \
    53 do { \
    54     unsigned sr, sg, sb, sa; (void) sa; \
    54     unsigned sr, sg, sb, sa; \
    55     getpixel; \
    55     getpixel; \
    56     sr = DRAW_MUL(inva, sr) + r; \
    56     sr = DRAW_MUL(inva, sr) + r; \
    57     sg = DRAW_MUL(inva, sg) + g; \
    57     sg = DRAW_MUL(inva, sg) + g; \
    58     sb = DRAW_MUL(inva, sb) + b; \
    58     sb = DRAW_MUL(inva, sb) + b; \
       
    59     sa = DRAW_MUL(inva, sa) + a; \
    59     setpixel; \
    60     setpixel; \
    60 } while (0)
    61 } while (0)
    61 
    62 
    62 #define DRAW_SETPIXEL_ADD(getpixel, setpixel) \
    63 #define DRAW_SETPIXEL_ADD(getpixel, setpixel) \
    63 do { \
    64 do { \