src/video/SDL_blit_N.c
changeset 12274 736699aa224d
parent 12273 c522b61334f1
child 12503 806492103856
     1.1 --- a/src/video/SDL_blit_N.c	Mon Oct 01 21:29:11 2018 +0300
     1.2 +++ b/src/video/SDL_blit_N.c	Mon Oct 01 14:43:03 2018 -0700
     1.3 @@ -2344,8 +2344,9 @@
     1.4              /* *INDENT-OFF* */
     1.5              DUFFS_LOOP(
     1.6              {
     1.7 -                Uint32 Pixel = (*src32 == ckey) ? *dst32 : *src32;
     1.8 -                *dst32 = Pixel;
     1.9 +                if (*src32 != ckey) {
    1.10 +                    *dst32 = *src32;
    1.11 +                }
    1.12                  ++src32;
    1.13                  ++dst32;
    1.14              },
    1.15 @@ -2418,8 +2419,9 @@
    1.16              /* *INDENT-OFF* */
    1.17              DUFFS_LOOP(
    1.18              {
    1.19 -                Uint32 Pixel_ = ((*src32 & rgbmask) == ckey) ? *dst32 : *src32;
    1.20 -                *dst32 = Pixel_;
    1.21 +                if ((*src32 & rgbmask) != ckey) {
    1.22 +                    *dst32 = *src32;
    1.23 +                }
    1.24                  ++src32;
    1.25                  ++dst32;
    1.26              },