src/video/SDL_blit_auto.c
changeset 5140 e743b9c3f6d6
parent 3697 f7b03b6838cb
child 5184 d976b67150c5
     1.1 --- a/src/video/SDL_blit_auto.c	Mon Jan 31 22:53:45 2011 -0800
     1.2 +++ b/src/video/SDL_blit_auto.c	Mon Jan 31 23:23:57 2011 -0800
     1.3 @@ -1,7 +1,7 @@
     1.4  /* DO NOT EDIT!  This file is generated by sdlgenblit.pl */
     1.5  /*
     1.6      SDL - Simple DirectMedia Layer
     1.7 -    Copyright (C) 1997-2010 Sam Lantinga
     1.8 +    Copyright (C) 1997-2011 Sam Lantinga
     1.9  
    1.10      This library is free software; you can redistribute it and/or
    1.11      modify it under the terms of the GNU Lesser General Public
    1.12 @@ -92,14 +92,7 @@
    1.13                      srcB = (srcB * srcA) / 255;
    1.14                  }
    1.15              }
    1.16 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
    1.17 -            case SDL_COPY_MASK:
    1.18 -                if (srcA) {
    1.19 -                    dstR = srcR;
    1.20 -                    dstG = srcG;
    1.21 -                    dstB = srcB;
    1.22 -                }
    1.23 -                break;
    1.24 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
    1.25              case SDL_COPY_BLEND:
    1.26                  dstR = srcR + ((255 - srcA) * dstR) / 255;
    1.27                  dstG = srcG + ((255 - srcA) * dstG) / 255;
    1.28 @@ -110,11 +103,6 @@
    1.29                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
    1.30                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
    1.31                  break;
    1.32 -            case SDL_COPY_MOD:
    1.33 -                dstR = (srcR * dstR) / 255;
    1.34 -                dstG = (srcG * dstG) / 255;
    1.35 -                dstB = (srcB * dstB) / 255;
    1.36 -                break;
    1.37              }
    1.38              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
    1.39              *dst = dstpixel;
    1.40 @@ -172,14 +160,7 @@
    1.41                      srcB = (srcB * srcA) / 255;
    1.42                  }
    1.43              }
    1.44 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
    1.45 -            case SDL_COPY_MASK:
    1.46 -                if (srcA) {
    1.47 -                    dstR = srcR;
    1.48 -                    dstG = srcG;
    1.49 -                    dstB = srcB;
    1.50 -                }
    1.51 -                break;
    1.52 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
    1.53              case SDL_COPY_BLEND:
    1.54                  dstR = srcR + ((255 - srcA) * dstR) / 255;
    1.55                  dstG = srcG + ((255 - srcA) * dstG) / 255;
    1.56 @@ -190,11 +171,6 @@
    1.57                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
    1.58                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
    1.59                  break;
    1.60 -            case SDL_COPY_MOD:
    1.61 -                dstR = (srcR * dstR) / 255;
    1.62 -                dstG = (srcG * dstG) / 255;
    1.63 -                dstB = (srcB * dstB) / 255;
    1.64 -                break;
    1.65              }
    1.66              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
    1.67              *dst = dstpixel;
    1.68 @@ -334,14 +310,7 @@
    1.69                      srcB = (srcB * srcA) / 255;
    1.70                  }
    1.71              }
    1.72 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
    1.73 -            case SDL_COPY_MASK:
    1.74 -                if (srcA) {
    1.75 -                    dstR = srcR;
    1.76 -                    dstG = srcG;
    1.77 -                    dstB = srcB;
    1.78 -                }
    1.79 -                break;
    1.80 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
    1.81              case SDL_COPY_BLEND:
    1.82                  dstR = srcR + ((255 - srcA) * dstR) / 255;
    1.83                  dstG = srcG + ((255 - srcA) * dstG) / 255;
    1.84 @@ -352,11 +321,6 @@
    1.85                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
    1.86                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
    1.87                  break;
    1.88 -            case SDL_COPY_MOD:
    1.89 -                dstR = (srcR * dstR) / 255;
    1.90 -                dstG = (srcG * dstG) / 255;
    1.91 -                dstB = (srcB * dstB) / 255;
    1.92 -                break;
    1.93              }
    1.94              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
    1.95              *dst = dstpixel;
    1.96 @@ -426,14 +390,7 @@
    1.97                      srcB = (srcB * srcA) / 255;
    1.98                  }
    1.99              }
   1.100 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.101 -            case SDL_COPY_MASK:
   1.102 -                if (srcA) {
   1.103 -                    dstR = srcR;
   1.104 -                    dstG = srcG;
   1.105 -                    dstB = srcB;
   1.106 -                }
   1.107 -                break;
   1.108 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.109              case SDL_COPY_BLEND:
   1.110                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.111                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.112 @@ -444,11 +401,6 @@
   1.113                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.114                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.115                  break;
   1.116 -            case SDL_COPY_MOD:
   1.117 -                dstR = (srcR * dstR) / 255;
   1.118 -                dstG = (srcG * dstG) / 255;
   1.119 -                dstB = (srcB * dstB) / 255;
   1.120 -                break;
   1.121              }
   1.122              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.123              *dst = dstpixel;
   1.124 @@ -529,14 +481,7 @@
   1.125                      srcB = (srcB * srcA) / 255;
   1.126                  }
   1.127              }
   1.128 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.129 -            case SDL_COPY_MASK:
   1.130 -                if (srcA) {
   1.131 -                    dstR = srcR;
   1.132 -                    dstG = srcG;
   1.133 -                    dstB = srcB;
   1.134 -                }
   1.135 -                break;
   1.136 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.137              case SDL_COPY_BLEND:
   1.138                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.139                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.140 @@ -547,11 +492,6 @@
   1.141                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.142                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.143                  break;
   1.144 -            case SDL_COPY_MOD:
   1.145 -                dstR = (srcR * dstR) / 255;
   1.146 -                dstG = (srcG * dstG) / 255;
   1.147 -                dstB = (srcB * dstB) / 255;
   1.148 -                break;
   1.149              }
   1.150              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.151              *dst = dstpixel;
   1.152 @@ -609,14 +549,7 @@
   1.153                      srcB = (srcB * srcA) / 255;
   1.154                  }
   1.155              }
   1.156 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.157 -            case SDL_COPY_MASK:
   1.158 -                if (srcA) {
   1.159 -                    dstR = srcR;
   1.160 -                    dstG = srcG;
   1.161 -                    dstB = srcB;
   1.162 -                }
   1.163 -                break;
   1.164 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.165              case SDL_COPY_BLEND:
   1.166                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.167                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.168 @@ -627,11 +560,6 @@
   1.169                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.170                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.171                  break;
   1.172 -            case SDL_COPY_MOD:
   1.173 -                dstR = (srcR * dstR) / 255;
   1.174 -                dstG = (srcG * dstG) / 255;
   1.175 -                dstB = (srcB * dstB) / 255;
   1.176 -                break;
   1.177              }
   1.178              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.179              *dst = dstpixel;
   1.180 @@ -771,14 +699,7 @@
   1.181                      srcB = (srcB * srcA) / 255;
   1.182                  }
   1.183              }
   1.184 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.185 -            case SDL_COPY_MASK:
   1.186 -                if (srcA) {
   1.187 -                    dstR = srcR;
   1.188 -                    dstG = srcG;
   1.189 -                    dstB = srcB;
   1.190 -                }
   1.191 -                break;
   1.192 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.193              case SDL_COPY_BLEND:
   1.194                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.195                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.196 @@ -789,11 +710,6 @@
   1.197                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.198                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.199                  break;
   1.200 -            case SDL_COPY_MOD:
   1.201 -                dstR = (srcR * dstR) / 255;
   1.202 -                dstG = (srcG * dstG) / 255;
   1.203 -                dstB = (srcB * dstB) / 255;
   1.204 -                break;
   1.205              }
   1.206              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.207              *dst = dstpixel;
   1.208 @@ -863,14 +779,7 @@
   1.209                      srcB = (srcB * srcA) / 255;
   1.210                  }
   1.211              }
   1.212 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.213 -            case SDL_COPY_MASK:
   1.214 -                if (srcA) {
   1.215 -                    dstR = srcR;
   1.216 -                    dstG = srcG;
   1.217 -                    dstB = srcB;
   1.218 -                }
   1.219 -                break;
   1.220 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.221              case SDL_COPY_BLEND:
   1.222                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.223                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.224 @@ -881,11 +790,6 @@
   1.225                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.226                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.227                  break;
   1.228 -            case SDL_COPY_MOD:
   1.229 -                dstR = (srcR * dstR) / 255;
   1.230 -                dstG = (srcG * dstG) / 255;
   1.231 -                dstB = (srcB * dstB) / 255;
   1.232 -                break;
   1.233              }
   1.234              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.235              *dst = dstpixel;
   1.236 @@ -966,14 +870,7 @@
   1.237                      srcB = (srcB * srcA) / 255;
   1.238                  }
   1.239              }
   1.240 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.241 -            case SDL_COPY_MASK:
   1.242 -                if (srcA) {
   1.243 -                    dstR = srcR;
   1.244 -                    dstG = srcG;
   1.245 -                    dstB = srcB;
   1.246 -                }
   1.247 -                break;
   1.248 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.249              case SDL_COPY_BLEND:
   1.250                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.251                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.252 @@ -984,11 +881,6 @@
   1.253                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.254                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.255                  break;
   1.256 -            case SDL_COPY_MOD:
   1.257 -                dstR = (srcR * dstR) / 255;
   1.258 -                dstG = (srcG * dstG) / 255;
   1.259 -                dstB = (srcB * dstB) / 255;
   1.260 -                break;
   1.261              }
   1.262              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.263              *dst = dstpixel;
   1.264 @@ -1046,14 +938,7 @@
   1.265                      srcB = (srcB * srcA) / 255;
   1.266                  }
   1.267              }
   1.268 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.269 -            case SDL_COPY_MASK:
   1.270 -                if (srcA) {
   1.271 -                    dstR = srcR;
   1.272 -                    dstG = srcG;
   1.273 -                    dstB = srcB;
   1.274 -                }
   1.275 -                break;
   1.276 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.277              case SDL_COPY_BLEND:
   1.278                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.279                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.280 @@ -1064,11 +949,6 @@
   1.281                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.282                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.283                  break;
   1.284 -            case SDL_COPY_MOD:
   1.285 -                dstR = (srcR * dstR) / 255;
   1.286 -                dstG = (srcG * dstG) / 255;
   1.287 -                dstB = (srcB * dstB) / 255;
   1.288 -                break;
   1.289              }
   1.290              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.291              *dst = dstpixel;
   1.292 @@ -1208,14 +1088,7 @@
   1.293                      srcB = (srcB * srcA) / 255;
   1.294                  }
   1.295              }
   1.296 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.297 -            case SDL_COPY_MASK:
   1.298 -                if (srcA) {
   1.299 -                    dstR = srcR;
   1.300 -                    dstG = srcG;
   1.301 -                    dstB = srcB;
   1.302 -                }
   1.303 -                break;
   1.304 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.305              case SDL_COPY_BLEND:
   1.306                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.307                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.308 @@ -1226,11 +1099,6 @@
   1.309                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.310                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.311                  break;
   1.312 -            case SDL_COPY_MOD:
   1.313 -                dstR = (srcR * dstR) / 255;
   1.314 -                dstG = (srcG * dstG) / 255;
   1.315 -                dstB = (srcB * dstB) / 255;
   1.316 -                break;
   1.317              }
   1.318              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.319              *dst = dstpixel;
   1.320 @@ -1300,14 +1168,7 @@
   1.321                      srcB = (srcB * srcA) / 255;
   1.322                  }
   1.323              }
   1.324 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.325 -            case SDL_COPY_MASK:
   1.326 -                if (srcA) {
   1.327 -                    dstR = srcR;
   1.328 -                    dstG = srcG;
   1.329 -                    dstB = srcB;
   1.330 -                }
   1.331 -                break;
   1.332 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.333              case SDL_COPY_BLEND:
   1.334                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.335                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.336 @@ -1318,11 +1179,6 @@
   1.337                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.338                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.339                  break;
   1.340 -            case SDL_COPY_MOD:
   1.341 -                dstR = (srcR * dstR) / 255;
   1.342 -                dstG = (srcG * dstG) / 255;
   1.343 -                dstB = (srcB * dstB) / 255;
   1.344 -                break;
   1.345              }
   1.346              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.347              *dst = dstpixel;
   1.348 @@ -1403,14 +1259,7 @@
   1.349                      srcB = (srcB * srcA) / 255;
   1.350                  }
   1.351              }
   1.352 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.353 -            case SDL_COPY_MASK:
   1.354 -                if (srcA) {
   1.355 -                    dstR = srcR;
   1.356 -                    dstG = srcG;
   1.357 -                    dstB = srcB;
   1.358 -                }
   1.359 -                break;
   1.360 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.361              case SDL_COPY_BLEND:
   1.362                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.363                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.364 @@ -1421,11 +1270,6 @@
   1.365                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.366                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.367                  break;
   1.368 -            case SDL_COPY_MOD:
   1.369 -                dstR = (srcR * dstR) / 255;
   1.370 -                dstG = (srcG * dstG) / 255;
   1.371 -                dstB = (srcB * dstB) / 255;
   1.372 -                break;
   1.373              }
   1.374              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.375              *dst = dstpixel;
   1.376 @@ -1483,14 +1327,7 @@
   1.377                      srcB = (srcB * srcA) / 255;
   1.378                  }
   1.379              }
   1.380 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.381 -            case SDL_COPY_MASK:
   1.382 -                if (srcA) {
   1.383 -                    dstR = srcR;
   1.384 -                    dstG = srcG;
   1.385 -                    dstB = srcB;
   1.386 -                }
   1.387 -                break;
   1.388 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.389              case SDL_COPY_BLEND:
   1.390                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.391                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.392 @@ -1501,11 +1338,6 @@
   1.393                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.394                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.395                  break;
   1.396 -            case SDL_COPY_MOD:
   1.397 -                dstR = (srcR * dstR) / 255;
   1.398 -                dstG = (srcG * dstG) / 255;
   1.399 -                dstB = (srcB * dstB) / 255;
   1.400 -                break;
   1.401              }
   1.402              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.403              *dst = dstpixel;
   1.404 @@ -1645,14 +1477,7 @@
   1.405                      srcB = (srcB * srcA) / 255;
   1.406                  }
   1.407              }
   1.408 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.409 -            case SDL_COPY_MASK:
   1.410 -                if (srcA) {
   1.411 -                    dstR = srcR;
   1.412 -                    dstG = srcG;
   1.413 -                    dstB = srcB;
   1.414 -                }
   1.415 -                break;
   1.416 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.417              case SDL_COPY_BLEND:
   1.418                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.419                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.420 @@ -1663,11 +1488,6 @@
   1.421                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.422                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.423                  break;
   1.424 -            case SDL_COPY_MOD:
   1.425 -                dstR = (srcR * dstR) / 255;
   1.426 -                dstG = (srcG * dstG) / 255;
   1.427 -                dstB = (srcB * dstB) / 255;
   1.428 -                break;
   1.429              }
   1.430              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.431              *dst = dstpixel;
   1.432 @@ -1737,14 +1557,7 @@
   1.433                      srcB = (srcB * srcA) / 255;
   1.434                  }
   1.435              }
   1.436 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.437 -            case SDL_COPY_MASK:
   1.438 -                if (srcA) {
   1.439 -                    dstR = srcR;
   1.440 -                    dstG = srcG;
   1.441 -                    dstB = srcB;
   1.442 -                }
   1.443 -                break;
   1.444 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.445              case SDL_COPY_BLEND:
   1.446                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.447                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.448 @@ -1755,11 +1568,6 @@
   1.449                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.450                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.451                  break;
   1.452 -            case SDL_COPY_MOD:
   1.453 -                dstR = (srcR * dstR) / 255;
   1.454 -                dstG = (srcG * dstG) / 255;
   1.455 -                dstB = (srcB * dstB) / 255;
   1.456 -                break;
   1.457              }
   1.458              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.459              *dst = dstpixel;
   1.460 @@ -1835,14 +1643,7 @@
   1.461                      srcB = (srcB * srcA) / 255;
   1.462                  }
   1.463              }
   1.464 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.465 -            case SDL_COPY_MASK:
   1.466 -                if (srcA) {
   1.467 -                    dstR = srcR;
   1.468 -                    dstG = srcG;
   1.469 -                    dstB = srcB;
   1.470 -                }
   1.471 -                break;
   1.472 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.473              case SDL_COPY_BLEND:
   1.474                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.475                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.476 @@ -1853,11 +1654,6 @@
   1.477                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.478                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.479                  break;
   1.480 -            case SDL_COPY_MOD:
   1.481 -                dstR = (srcR * dstR) / 255;
   1.482 -                dstG = (srcG * dstG) / 255;
   1.483 -                dstB = (srcB * dstB) / 255;
   1.484 -                break;
   1.485              }
   1.486              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.487              *dst = dstpixel;
   1.488 @@ -1915,14 +1711,7 @@
   1.489                      srcB = (srcB * srcA) / 255;
   1.490                  }
   1.491              }
   1.492 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.493 -            case SDL_COPY_MASK:
   1.494 -                if (srcA) {
   1.495 -                    dstR = srcR;
   1.496 -                    dstG = srcG;
   1.497 -                    dstB = srcB;
   1.498 -                }
   1.499 -                break;
   1.500 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.501              case SDL_COPY_BLEND:
   1.502                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.503                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.504 @@ -1933,11 +1722,6 @@
   1.505                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.506                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.507                  break;
   1.508 -            case SDL_COPY_MOD:
   1.509 -                dstR = (srcR * dstR) / 255;
   1.510 -                dstG = (srcG * dstG) / 255;
   1.511 -                dstB = (srcB * dstB) / 255;
   1.512 -                break;
   1.513              }
   1.514              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.515              *dst = dstpixel;
   1.516 @@ -2077,14 +1861,7 @@
   1.517                      srcB = (srcB * srcA) / 255;
   1.518                  }
   1.519              }
   1.520 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.521 -            case SDL_COPY_MASK:
   1.522 -                if (srcA) {
   1.523 -                    dstR = srcR;
   1.524 -                    dstG = srcG;
   1.525 -                    dstB = srcB;
   1.526 -                }
   1.527 -                break;
   1.528 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.529              case SDL_COPY_BLEND:
   1.530                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.531                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.532 @@ -2095,11 +1872,6 @@
   1.533                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.534                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.535                  break;
   1.536 -            case SDL_COPY_MOD:
   1.537 -                dstR = (srcR * dstR) / 255;
   1.538 -                dstG = (srcG * dstG) / 255;
   1.539 -                dstB = (srcB * dstB) / 255;
   1.540 -                break;
   1.541              }
   1.542              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.543              *dst = dstpixel;
   1.544 @@ -2169,14 +1941,7 @@
   1.545                      srcB = (srcB * srcA) / 255;
   1.546                  }
   1.547              }
   1.548 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.549 -            case SDL_COPY_MASK:
   1.550 -                if (srcA) {
   1.551 -                    dstR = srcR;
   1.552 -                    dstG = srcG;
   1.553 -                    dstB = srcB;
   1.554 -                }
   1.555 -                break;
   1.556 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.557              case SDL_COPY_BLEND:
   1.558                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.559                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.560 @@ -2187,11 +1952,6 @@
   1.561                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.562                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.563                  break;
   1.564 -            case SDL_COPY_MOD:
   1.565 -                dstR = (srcR * dstR) / 255;
   1.566 -                dstG = (srcG * dstG) / 255;
   1.567 -                dstB = (srcB * dstB) / 255;
   1.568 -                break;
   1.569              }
   1.570              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.571              *dst = dstpixel;
   1.572 @@ -2272,14 +2032,7 @@
   1.573                      srcB = (srcB * srcA) / 255;
   1.574                  }
   1.575              }
   1.576 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.577 -            case SDL_COPY_MASK:
   1.578 -                if (srcA) {
   1.579 -                    dstR = srcR;
   1.580 -                    dstG = srcG;
   1.581 -                    dstB = srcB;
   1.582 -                }
   1.583 -                break;
   1.584 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.585              case SDL_COPY_BLEND:
   1.586                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.587                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.588 @@ -2290,11 +2043,6 @@
   1.589                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.590                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.591                  break;
   1.592 -            case SDL_COPY_MOD:
   1.593 -                dstR = (srcR * dstR) / 255;
   1.594 -                dstG = (srcG * dstG) / 255;
   1.595 -                dstB = (srcB * dstB) / 255;
   1.596 -                break;
   1.597              }
   1.598              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.599              *dst = dstpixel;
   1.600 @@ -2352,14 +2100,7 @@
   1.601                      srcB = (srcB * srcA) / 255;
   1.602                  }
   1.603              }
   1.604 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.605 -            case SDL_COPY_MASK:
   1.606 -                if (srcA) {
   1.607 -                    dstR = srcR;
   1.608 -                    dstG = srcG;
   1.609 -                    dstB = srcB;
   1.610 -                }
   1.611 -                break;
   1.612 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.613              case SDL_COPY_BLEND:
   1.614                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.615                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.616 @@ -2370,11 +2111,6 @@
   1.617                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.618                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.619                  break;
   1.620 -            case SDL_COPY_MOD:
   1.621 -                dstR = (srcR * dstR) / 255;
   1.622 -                dstG = (srcG * dstG) / 255;
   1.623 -                dstB = (srcB * dstB) / 255;
   1.624 -                break;
   1.625              }
   1.626              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.627              *dst = dstpixel;
   1.628 @@ -2514,14 +2250,7 @@
   1.629                      srcB = (srcB * srcA) / 255;
   1.630                  }
   1.631              }
   1.632 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.633 -            case SDL_COPY_MASK:
   1.634 -                if (srcA) {
   1.635 -                    dstR = srcR;
   1.636 -                    dstG = srcG;
   1.637 -                    dstB = srcB;
   1.638 -                }
   1.639 -                break;
   1.640 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.641              case SDL_COPY_BLEND:
   1.642                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.643                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.644 @@ -2532,11 +2261,6 @@
   1.645                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.646                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.647                  break;
   1.648 -            case SDL_COPY_MOD:
   1.649 -                dstR = (srcR * dstR) / 255;
   1.650 -                dstG = (srcG * dstG) / 255;
   1.651 -                dstB = (srcB * dstB) / 255;
   1.652 -                break;
   1.653              }
   1.654              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.655              *dst = dstpixel;
   1.656 @@ -2606,14 +2330,7 @@
   1.657                      srcB = (srcB * srcA) / 255;
   1.658                  }
   1.659              }
   1.660 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.661 -            case SDL_COPY_MASK:
   1.662 -                if (srcA) {
   1.663 -                    dstR = srcR;
   1.664 -                    dstG = srcG;
   1.665 -                    dstB = srcB;
   1.666 -                }
   1.667 -                break;
   1.668 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.669              case SDL_COPY_BLEND:
   1.670                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.671                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.672 @@ -2624,11 +2341,6 @@
   1.673                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.674                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.675                  break;
   1.676 -            case SDL_COPY_MOD:
   1.677 -                dstR = (srcR * dstR) / 255;
   1.678 -                dstG = (srcG * dstG) / 255;
   1.679 -                dstB = (srcB * dstB) / 255;
   1.680 -                break;
   1.681              }
   1.682              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.683              *dst = dstpixel;
   1.684 @@ -2709,14 +2421,7 @@
   1.685                      srcB = (srcB * srcA) / 255;
   1.686                  }
   1.687              }
   1.688 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.689 -            case SDL_COPY_MASK:
   1.690 -                if (srcA) {
   1.691 -                    dstR = srcR;
   1.692 -                    dstG = srcG;
   1.693 -                    dstB = srcB;
   1.694 -                }
   1.695 -                break;
   1.696 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.697              case SDL_COPY_BLEND:
   1.698                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.699                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.700 @@ -2727,11 +2432,6 @@
   1.701                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.702                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.703                  break;
   1.704 -            case SDL_COPY_MOD:
   1.705 -                dstR = (srcR * dstR) / 255;
   1.706 -                dstG = (srcG * dstG) / 255;
   1.707 -                dstB = (srcB * dstB) / 255;
   1.708 -                break;
   1.709              }
   1.710              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.711              *dst = dstpixel;
   1.712 @@ -2789,14 +2489,7 @@
   1.713                      srcB = (srcB * srcA) / 255;
   1.714                  }
   1.715              }
   1.716 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.717 -            case SDL_COPY_MASK:
   1.718 -                if (srcA) {
   1.719 -                    dstR = srcR;
   1.720 -                    dstG = srcG;
   1.721 -                    dstB = srcB;
   1.722 -                }
   1.723 -                break;
   1.724 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.725              case SDL_COPY_BLEND:
   1.726                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.727                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.728 @@ -2807,11 +2500,6 @@
   1.729                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.730                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.731                  break;
   1.732 -            case SDL_COPY_MOD:
   1.733 -                dstR = (srcR * dstR) / 255;
   1.734 -                dstG = (srcG * dstG) / 255;
   1.735 -                dstB = (srcB * dstB) / 255;
   1.736 -                break;
   1.737              }
   1.738              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.739              *dst = dstpixel;
   1.740 @@ -2951,14 +2639,7 @@
   1.741                      srcB = (srcB * srcA) / 255;
   1.742                  }
   1.743              }
   1.744 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.745 -            case SDL_COPY_MASK:
   1.746 -                if (srcA) {
   1.747 -                    dstR = srcR;
   1.748 -                    dstG = srcG;
   1.749 -                    dstB = srcB;
   1.750 -                }
   1.751 -                break;
   1.752 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.753              case SDL_COPY_BLEND:
   1.754                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.755                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.756 @@ -2969,11 +2650,6 @@
   1.757                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.758                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.759                  break;
   1.760 -            case SDL_COPY_MOD:
   1.761 -                dstR = (srcR * dstR) / 255;
   1.762 -                dstG = (srcG * dstG) / 255;
   1.763 -                dstB = (srcB * dstB) / 255;
   1.764 -                break;
   1.765              }
   1.766              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.767              *dst = dstpixel;
   1.768 @@ -3043,14 +2719,7 @@
   1.769                      srcB = (srcB * srcA) / 255;
   1.770                  }
   1.771              }
   1.772 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.773 -            case SDL_COPY_MASK:
   1.774 -                if (srcA) {
   1.775 -                    dstR = srcR;
   1.776 -                    dstG = srcG;
   1.777 -                    dstB = srcB;
   1.778 -                }
   1.779 -                break;
   1.780 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.781              case SDL_COPY_BLEND:
   1.782                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.783                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.784 @@ -3061,11 +2730,6 @@
   1.785                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.786                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.787                  break;
   1.788 -            case SDL_COPY_MOD:
   1.789 -                dstR = (srcR * dstR) / 255;
   1.790 -                dstG = (srcG * dstG) / 255;
   1.791 -                dstB = (srcB * dstB) / 255;
   1.792 -                break;
   1.793              }
   1.794              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.795              *dst = dstpixel;
   1.796 @@ -3146,14 +2810,7 @@
   1.797                      srcB = (srcB * srcA) / 255;
   1.798                  }
   1.799              }
   1.800 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.801 -            case SDL_COPY_MASK:
   1.802 -                if (srcA) {
   1.803 -                    dstR = srcR;
   1.804 -                    dstG = srcG;
   1.805 -                    dstB = srcB;
   1.806 -                }
   1.807 -                break;
   1.808 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.809              case SDL_COPY_BLEND:
   1.810                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.811                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.812 @@ -3164,11 +2821,6 @@
   1.813                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.814                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.815                  break;
   1.816 -            case SDL_COPY_MOD:
   1.817 -                dstR = (srcR * dstR) / 255;
   1.818 -                dstG = (srcG * dstG) / 255;
   1.819 -                dstB = (srcB * dstB) / 255;
   1.820 -                break;
   1.821              }
   1.822              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.823              *dst = dstpixel;
   1.824 @@ -3226,14 +2878,7 @@
   1.825                      srcB = (srcB * srcA) / 255;
   1.826                  }
   1.827              }
   1.828 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.829 -            case SDL_COPY_MASK:
   1.830 -                if (srcA) {
   1.831 -                    dstR = srcR;
   1.832 -                    dstG = srcG;
   1.833 -                    dstB = srcB;
   1.834 -                }
   1.835 -                break;
   1.836 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.837              case SDL_COPY_BLEND:
   1.838                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.839                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.840 @@ -3244,11 +2889,6 @@
   1.841                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.842                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.843                  break;
   1.844 -            case SDL_COPY_MOD:
   1.845 -                dstR = (srcR * dstR) / 255;
   1.846 -                dstG = (srcG * dstG) / 255;
   1.847 -                dstB = (srcB * dstB) / 255;
   1.848 -                break;
   1.849              }
   1.850              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.851              *dst = dstpixel;
   1.852 @@ -3388,14 +3028,7 @@
   1.853                      srcB = (srcB * srcA) / 255;
   1.854                  }
   1.855              }
   1.856 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.857 -            case SDL_COPY_MASK:
   1.858 -                if (srcA) {
   1.859 -                    dstR = srcR;
   1.860 -                    dstG = srcG;
   1.861 -                    dstB = srcB;
   1.862 -                }
   1.863 -                break;
   1.864 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.865              case SDL_COPY_BLEND:
   1.866                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.867                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.868 @@ -3406,11 +3039,6 @@
   1.869                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.870                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.871                  break;
   1.872 -            case SDL_COPY_MOD:
   1.873 -                dstR = (srcR * dstR) / 255;
   1.874 -                dstG = (srcG * dstG) / 255;
   1.875 -                dstB = (srcB * dstB) / 255;
   1.876 -                break;
   1.877              }
   1.878              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.879              *dst = dstpixel;
   1.880 @@ -3480,14 +3108,7 @@
   1.881                      srcB = (srcB * srcA) / 255;
   1.882                  }
   1.883              }
   1.884 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.885 -            case SDL_COPY_MASK:
   1.886 -                if (srcA) {
   1.887 -                    dstR = srcR;
   1.888 -                    dstG = srcG;
   1.889 -                    dstB = srcB;
   1.890 -                }
   1.891 -                break;
   1.892 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.893              case SDL_COPY_BLEND:
   1.894                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.895                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.896 @@ -3498,11 +3119,6 @@
   1.897                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.898                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.899                  break;
   1.900 -            case SDL_COPY_MOD:
   1.901 -                dstR = (srcR * dstR) / 255;
   1.902 -                dstG = (srcG * dstG) / 255;
   1.903 -                dstB = (srcB * dstB) / 255;
   1.904 -                break;
   1.905              }
   1.906              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
   1.907              *dst = dstpixel;
   1.908 @@ -3578,14 +3194,7 @@
   1.909                      srcB = (srcB * srcA) / 255;
   1.910                  }
   1.911              }
   1.912 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.913 -            case SDL_COPY_MASK:
   1.914 -                if (srcA) {
   1.915 -                    dstR = srcR;
   1.916 -                    dstG = srcG;
   1.917 -                    dstB = srcB;
   1.918 -                }
   1.919 -                break;
   1.920 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.921              case SDL_COPY_BLEND:
   1.922                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.923                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.924 @@ -3596,11 +3205,6 @@
   1.925                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.926                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.927                  break;
   1.928 -            case SDL_COPY_MOD:
   1.929 -                dstR = (srcR * dstR) / 255;
   1.930 -                dstG = (srcG * dstG) / 255;
   1.931 -                dstB = (srcB * dstB) / 255;
   1.932 -                break;
   1.933              }
   1.934              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.935              *dst = dstpixel;
   1.936 @@ -3658,14 +3262,7 @@
   1.937                      srcB = (srcB * srcA) / 255;
   1.938                  }
   1.939              }
   1.940 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.941 -            case SDL_COPY_MASK:
   1.942 -                if (srcA) {
   1.943 -                    dstR = srcR;
   1.944 -                    dstG = srcG;
   1.945 -                    dstB = srcB;
   1.946 -                }
   1.947 -                break;
   1.948 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.949              case SDL_COPY_BLEND:
   1.950                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.951                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.952 @@ -3676,11 +3273,6 @@
   1.953                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.954                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.955                  break;
   1.956 -            case SDL_COPY_MOD:
   1.957 -                dstR = (srcR * dstR) / 255;
   1.958 -                dstG = (srcG * dstG) / 255;
   1.959 -                dstB = (srcB * dstB) / 255;
   1.960 -                break;
   1.961              }
   1.962              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.963              *dst = dstpixel;
   1.964 @@ -3820,14 +3412,7 @@
   1.965                      srcB = (srcB * srcA) / 255;
   1.966                  }
   1.967              }
   1.968 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.969 -            case SDL_COPY_MASK:
   1.970 -                if (srcA) {
   1.971 -                    dstR = srcR;
   1.972 -                    dstG = srcG;
   1.973 -                    dstB = srcB;
   1.974 -                }
   1.975 -                break;
   1.976 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
   1.977              case SDL_COPY_BLEND:
   1.978                  dstR = srcR + ((255 - srcA) * dstR) / 255;
   1.979                  dstG = srcG + ((255 - srcA) * dstG) / 255;
   1.980 @@ -3838,11 +3423,6 @@
   1.981                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
   1.982                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
   1.983                  break;
   1.984 -            case SDL_COPY_MOD:
   1.985 -                dstR = (srcR * dstR) / 255;
   1.986 -                dstG = (srcG * dstG) / 255;
   1.987 -                dstB = (srcB * dstB) / 255;
   1.988 -                break;
   1.989              }
   1.990              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
   1.991              *dst = dstpixel;
   1.992 @@ -3912,14 +3492,7 @@
   1.993                      srcB = (srcB * srcA) / 255;
   1.994                  }
   1.995              }
   1.996 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
   1.997 -            case SDL_COPY_MASK:
   1.998 -                if (srcA) {
   1.999 -                    dstR = srcR;
  1.1000 -                    dstG = srcG;
  1.1001 -                    dstB = srcB;
  1.1002 -                }
  1.1003 -                break;
  1.1004 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1005              case SDL_COPY_BLEND:
  1.1006                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1007                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1008 @@ -3930,11 +3503,6 @@
  1.1009                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1010                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1011                  break;
  1.1012 -            case SDL_COPY_MOD:
  1.1013 -                dstR = (srcR * dstR) / 255;
  1.1014 -                dstG = (srcG * dstG) / 255;
  1.1015 -                dstB = (srcB * dstB) / 255;
  1.1016 -                break;
  1.1017              }
  1.1018              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1019              *dst = dstpixel;
  1.1020 @@ -4015,14 +3583,7 @@
  1.1021                      srcB = (srcB * srcA) / 255;
  1.1022                  }
  1.1023              }
  1.1024 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1025 -            case SDL_COPY_MASK:
  1.1026 -                if (srcA) {
  1.1027 -                    dstR = srcR;
  1.1028 -                    dstG = srcG;
  1.1029 -                    dstB = srcB;
  1.1030 -                }
  1.1031 -                break;
  1.1032 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1033              case SDL_COPY_BLEND:
  1.1034                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1035                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1036 @@ -4033,11 +3594,6 @@
  1.1037                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1038                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1039                  break;
  1.1040 -            case SDL_COPY_MOD:
  1.1041 -                dstR = (srcR * dstR) / 255;
  1.1042 -                dstG = (srcG * dstG) / 255;
  1.1043 -                dstB = (srcB * dstB) / 255;
  1.1044 -                break;
  1.1045              }
  1.1046              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1047              *dst = dstpixel;
  1.1048 @@ -4095,14 +3651,7 @@
  1.1049                      srcB = (srcB * srcA) / 255;
  1.1050                  }
  1.1051              }
  1.1052 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1053 -            case SDL_COPY_MASK:
  1.1054 -                if (srcA) {
  1.1055 -                    dstR = srcR;
  1.1056 -                    dstG = srcG;
  1.1057 -                    dstB = srcB;
  1.1058 -                }
  1.1059 -                break;
  1.1060 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1061              case SDL_COPY_BLEND:
  1.1062                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1063                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1064 @@ -4113,11 +3662,6 @@
  1.1065                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1066                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1067                  break;
  1.1068 -            case SDL_COPY_MOD:
  1.1069 -                dstR = (srcR * dstR) / 255;
  1.1070 -                dstG = (srcG * dstG) / 255;
  1.1071 -                dstB = (srcB * dstB) / 255;
  1.1072 -                break;
  1.1073              }
  1.1074              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1075              *dst = dstpixel;
  1.1076 @@ -4257,14 +3801,7 @@
  1.1077                      srcB = (srcB * srcA) / 255;
  1.1078                  }
  1.1079              }
  1.1080 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1081 -            case SDL_COPY_MASK:
  1.1082 -                if (srcA) {
  1.1083 -                    dstR = srcR;
  1.1084 -                    dstG = srcG;
  1.1085 -                    dstB = srcB;
  1.1086 -                }
  1.1087 -                break;
  1.1088 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1089              case SDL_COPY_BLEND:
  1.1090                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1091                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1092 @@ -4275,11 +3812,6 @@
  1.1093                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1094                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1095                  break;
  1.1096 -            case SDL_COPY_MOD:
  1.1097 -                dstR = (srcR * dstR) / 255;
  1.1098 -                dstG = (srcG * dstG) / 255;
  1.1099 -                dstB = (srcB * dstB) / 255;
  1.1100 -                break;
  1.1101              }
  1.1102              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1103              *dst = dstpixel;
  1.1104 @@ -4349,14 +3881,7 @@
  1.1105                      srcB = (srcB * srcA) / 255;
  1.1106                  }
  1.1107              }
  1.1108 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1109 -            case SDL_COPY_MASK:
  1.1110 -                if (srcA) {
  1.1111 -                    dstR = srcR;
  1.1112 -                    dstG = srcG;
  1.1113 -                    dstB = srcB;
  1.1114 -                }
  1.1115 -                break;
  1.1116 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1117              case SDL_COPY_BLEND:
  1.1118                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1119                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1120 @@ -4367,11 +3892,6 @@
  1.1121                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1122                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1123                  break;
  1.1124 -            case SDL_COPY_MOD:
  1.1125 -                dstR = (srcR * dstR) / 255;
  1.1126 -                dstG = (srcG * dstG) / 255;
  1.1127 -                dstB = (srcB * dstB) / 255;
  1.1128 -                break;
  1.1129              }
  1.1130              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1131              *dst = dstpixel;
  1.1132 @@ -4452,14 +3972,7 @@
  1.1133                      srcB = (srcB * srcA) / 255;
  1.1134                  }
  1.1135              }
  1.1136 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1137 -            case SDL_COPY_MASK:
  1.1138 -                if (srcA) {
  1.1139 -                    dstR = srcR;
  1.1140 -                    dstG = srcG;
  1.1141 -                    dstB = srcB;
  1.1142 -                }
  1.1143 -                break;
  1.1144 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1145              case SDL_COPY_BLEND:
  1.1146                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1147                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1148 @@ -4470,11 +3983,6 @@
  1.1149                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1150                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1151                  break;
  1.1152 -            case SDL_COPY_MOD:
  1.1153 -                dstR = (srcR * dstR) / 255;
  1.1154 -                dstG = (srcG * dstG) / 255;
  1.1155 -                dstB = (srcB * dstB) / 255;
  1.1156 -                break;
  1.1157              }
  1.1158              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1159              *dst = dstpixel;
  1.1160 @@ -4532,14 +4040,7 @@
  1.1161                      srcB = (srcB * srcA) / 255;
  1.1162                  }
  1.1163              }
  1.1164 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1165 -            case SDL_COPY_MASK:
  1.1166 -                if (srcA) {
  1.1167 -                    dstR = srcR;
  1.1168 -                    dstG = srcG;
  1.1169 -                    dstB = srcB;
  1.1170 -                }
  1.1171 -                break;
  1.1172 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1173              case SDL_COPY_BLEND:
  1.1174                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1175                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1176 @@ -4550,11 +4051,6 @@
  1.1177                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1178                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1179                  break;
  1.1180 -            case SDL_COPY_MOD:
  1.1181 -                dstR = (srcR * dstR) / 255;
  1.1182 -                dstG = (srcG * dstG) / 255;
  1.1183 -                dstB = (srcB * dstB) / 255;
  1.1184 -                break;
  1.1185              }
  1.1186              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1187              *dst = dstpixel;
  1.1188 @@ -4694,14 +4190,7 @@
  1.1189                      srcB = (srcB * srcA) / 255;
  1.1190                  }
  1.1191              }
  1.1192 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1193 -            case SDL_COPY_MASK:
  1.1194 -                if (srcA) {
  1.1195 -                    dstR = srcR;
  1.1196 -                    dstG = srcG;
  1.1197 -                    dstB = srcB;
  1.1198 -                }
  1.1199 -                break;
  1.1200 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1201              case SDL_COPY_BLEND:
  1.1202                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1203                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1204 @@ -4712,11 +4201,6 @@
  1.1205                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1206                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1207                  break;
  1.1208 -            case SDL_COPY_MOD:
  1.1209 -                dstR = (srcR * dstR) / 255;
  1.1210 -                dstG = (srcG * dstG) / 255;
  1.1211 -                dstB = (srcB * dstB) / 255;
  1.1212 -                break;
  1.1213              }
  1.1214              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1215              *dst = dstpixel;
  1.1216 @@ -4786,14 +4270,7 @@
  1.1217                      srcB = (srcB * srcA) / 255;
  1.1218                  }
  1.1219              }
  1.1220 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1221 -            case SDL_COPY_MASK:
  1.1222 -                if (srcA) {
  1.1223 -                    dstR = srcR;
  1.1224 -                    dstG = srcG;
  1.1225 -                    dstB = srcB;
  1.1226 -                }
  1.1227 -                break;
  1.1228 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1229              case SDL_COPY_BLEND:
  1.1230                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1231                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1232 @@ -4804,11 +4281,6 @@
  1.1233                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1234                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1235                  break;
  1.1236 -            case SDL_COPY_MOD:
  1.1237 -                dstR = (srcR * dstR) / 255;
  1.1238 -                dstG = (srcG * dstG) / 255;
  1.1239 -                dstB = (srcB * dstB) / 255;
  1.1240 -                break;
  1.1241              }
  1.1242              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1243              *dst = dstpixel;
  1.1244 @@ -4889,14 +4361,7 @@
  1.1245                      srcB = (srcB * srcA) / 255;
  1.1246                  }
  1.1247              }
  1.1248 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1249 -            case SDL_COPY_MASK:
  1.1250 -                if (srcA) {
  1.1251 -                    dstR = srcR;
  1.1252 -                    dstG = srcG;
  1.1253 -                    dstB = srcB;
  1.1254 -                }
  1.1255 -                break;
  1.1256 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1257              case SDL_COPY_BLEND:
  1.1258                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1259                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1260 @@ -4907,11 +4372,6 @@
  1.1261                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1262                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1263                  break;
  1.1264 -            case SDL_COPY_MOD:
  1.1265 -                dstR = (srcR * dstR) / 255;
  1.1266 -                dstG = (srcG * dstG) / 255;
  1.1267 -                dstB = (srcB * dstB) / 255;
  1.1268 -                break;
  1.1269              }
  1.1270              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1271              *dst = dstpixel;
  1.1272 @@ -4969,14 +4429,7 @@
  1.1273                      srcB = (srcB * srcA) / 255;
  1.1274                  }
  1.1275              }
  1.1276 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1277 -            case SDL_COPY_MASK:
  1.1278 -                if (srcA) {
  1.1279 -                    dstR = srcR;
  1.1280 -                    dstG = srcG;
  1.1281 -                    dstB = srcB;
  1.1282 -                }
  1.1283 -                break;
  1.1284 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1285              case SDL_COPY_BLEND:
  1.1286                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1287                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1288 @@ -4987,11 +4440,6 @@
  1.1289                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1290                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1291                  break;
  1.1292 -            case SDL_COPY_MOD:
  1.1293 -                dstR = (srcR * dstR) / 255;
  1.1294 -                dstG = (srcG * dstG) / 255;
  1.1295 -                dstB = (srcB * dstB) / 255;
  1.1296 -                break;
  1.1297              }
  1.1298              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1299              *dst = dstpixel;
  1.1300 @@ -5131,14 +4579,7 @@
  1.1301                      srcB = (srcB * srcA) / 255;
  1.1302                  }
  1.1303              }
  1.1304 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1305 -            case SDL_COPY_MASK:
  1.1306 -                if (srcA) {
  1.1307 -                    dstR = srcR;
  1.1308 -                    dstG = srcG;
  1.1309 -                    dstB = srcB;
  1.1310 -                }
  1.1311 -                break;
  1.1312 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1313              case SDL_COPY_BLEND:
  1.1314                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1315                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1316 @@ -5149,11 +4590,6 @@
  1.1317                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1318                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1319                  break;
  1.1320 -            case SDL_COPY_MOD:
  1.1321 -                dstR = (srcR * dstR) / 255;
  1.1322 -                dstG = (srcG * dstG) / 255;
  1.1323 -                dstB = (srcB * dstB) / 255;
  1.1324 -                break;
  1.1325              }
  1.1326              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1327              *dst = dstpixel;
  1.1328 @@ -5223,14 +4659,7 @@
  1.1329                      srcB = (srcB * srcA) / 255;
  1.1330                  }
  1.1331              }
  1.1332 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1333 -            case SDL_COPY_MASK:
  1.1334 -                if (srcA) {
  1.1335 -                    dstR = srcR;
  1.1336 -                    dstG = srcG;
  1.1337 -                    dstB = srcB;
  1.1338 -                }
  1.1339 -                break;
  1.1340 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1341              case SDL_COPY_BLEND:
  1.1342                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1343                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1344 @@ -5241,11 +4670,6 @@
  1.1345                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1346                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1347                  break;
  1.1348 -            case SDL_COPY_MOD:
  1.1349 -                dstR = (srcR * dstR) / 255;
  1.1350 -                dstG = (srcG * dstG) / 255;
  1.1351 -                dstB = (srcB * dstB) / 255;
  1.1352 -                break;
  1.1353              }
  1.1354              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1355              *dst = dstpixel;
  1.1356 @@ -5326,14 +4750,7 @@
  1.1357                      srcB = (srcB * srcA) / 255;
  1.1358                  }
  1.1359              }
  1.1360 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1361 -            case SDL_COPY_MASK:
  1.1362 -                if (srcA) {
  1.1363 -                    dstR = srcR;
  1.1364 -                    dstG = srcG;
  1.1365 -                    dstB = srcB;
  1.1366 -                }
  1.1367 -                break;
  1.1368 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1369              case SDL_COPY_BLEND:
  1.1370                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1371                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1372 @@ -5344,11 +4761,6 @@
  1.1373                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1374                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1375                  break;
  1.1376 -            case SDL_COPY_MOD:
  1.1377 -                dstR = (srcR * dstR) / 255;
  1.1378 -                dstG = (srcG * dstG) / 255;
  1.1379 -                dstB = (srcB * dstB) / 255;
  1.1380 -                break;
  1.1381              }
  1.1382              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1383              *dst = dstpixel;
  1.1384 @@ -5406,14 +4818,7 @@
  1.1385                      srcB = (srcB * srcA) / 255;
  1.1386                  }
  1.1387              }
  1.1388 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1389 -            case SDL_COPY_MASK:
  1.1390 -                if (srcA) {
  1.1391 -                    dstR = srcR;
  1.1392 -                    dstG = srcG;
  1.1393 -                    dstB = srcB;
  1.1394 -                }
  1.1395 -                break;
  1.1396 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1397              case SDL_COPY_BLEND:
  1.1398                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1399                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1400 @@ -5424,11 +4829,6 @@
  1.1401                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1402                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1403                  break;
  1.1404 -            case SDL_COPY_MOD:
  1.1405 -                dstR = (srcR * dstR) / 255;
  1.1406 -                dstG = (srcG * dstG) / 255;
  1.1407 -                dstB = (srcB * dstB) / 255;
  1.1408 -                break;
  1.1409              }
  1.1410              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1411              *dst = dstpixel;
  1.1412 @@ -5568,14 +4968,7 @@
  1.1413                      srcB = (srcB * srcA) / 255;
  1.1414                  }
  1.1415              }
  1.1416 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1417 -            case SDL_COPY_MASK:
  1.1418 -                if (srcA) {
  1.1419 -                    dstR = srcR;
  1.1420 -                    dstG = srcG;
  1.1421 -                    dstB = srcB;
  1.1422 -                }
  1.1423 -                break;
  1.1424 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1425              case SDL_COPY_BLEND:
  1.1426                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1427                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1428 @@ -5586,11 +4979,6 @@
  1.1429                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1430                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1431                  break;
  1.1432 -            case SDL_COPY_MOD:
  1.1433 -                dstR = (srcR * dstR) / 255;
  1.1434 -                dstG = (srcG * dstG) / 255;
  1.1435 -                dstB = (srcB * dstB) / 255;
  1.1436 -                break;
  1.1437              }
  1.1438              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1439              *dst = dstpixel;
  1.1440 @@ -5660,14 +5048,7 @@
  1.1441                      srcB = (srcB * srcA) / 255;
  1.1442                  }
  1.1443              }
  1.1444 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1445 -            case SDL_COPY_MASK:
  1.1446 -                if (srcA) {
  1.1447 -                    dstR = srcR;
  1.1448 -                    dstG = srcG;
  1.1449 -                    dstB = srcB;
  1.1450 -                }
  1.1451 -                break;
  1.1452 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1453              case SDL_COPY_BLEND:
  1.1454                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1455                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1456 @@ -5678,11 +5059,6 @@
  1.1457                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1458                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1459                  break;
  1.1460 -            case SDL_COPY_MOD:
  1.1461 -                dstR = (srcR * dstR) / 255;
  1.1462 -                dstG = (srcG * dstG) / 255;
  1.1463 -                dstB = (srcB * dstB) / 255;
  1.1464 -                break;
  1.1465              }
  1.1466              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1467              *dst = dstpixel;
  1.1468 @@ -5763,14 +5139,7 @@
  1.1469                      srcB = (srcB * srcA) / 255;
  1.1470                  }
  1.1471              }
  1.1472 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1473 -            case SDL_COPY_MASK:
  1.1474 -                if (srcA) {
  1.1475 -                    dstR = srcR;
  1.1476 -                    dstG = srcG;
  1.1477 -                    dstB = srcB;
  1.1478 -                }
  1.1479 -                break;
  1.1480 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1481              case SDL_COPY_BLEND:
  1.1482                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1483                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1484 @@ -5781,11 +5150,6 @@
  1.1485                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1486                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1487                  break;
  1.1488 -            case SDL_COPY_MOD:
  1.1489 -                dstR = (srcR * dstR) / 255;
  1.1490 -                dstG = (srcG * dstG) / 255;
  1.1491 -                dstB = (srcB * dstB) / 255;
  1.1492 -                break;
  1.1493              }
  1.1494              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1495              *dst = dstpixel;
  1.1496 @@ -5843,14 +5207,7 @@
  1.1497                      srcB = (srcB * srcA) / 255;
  1.1498                  }
  1.1499              }
  1.1500 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1501 -            case SDL_COPY_MASK:
  1.1502 -                if (srcA) {
  1.1503 -                    dstR = srcR;
  1.1504 -                    dstG = srcG;
  1.1505 -                    dstB = srcB;
  1.1506 -                }
  1.1507 -                break;
  1.1508 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1509              case SDL_COPY_BLEND:
  1.1510                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1511                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1512 @@ -5861,11 +5218,6 @@
  1.1513                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1514                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1515                  break;
  1.1516 -            case SDL_COPY_MOD:
  1.1517 -                dstR = (srcR * dstR) / 255;
  1.1518 -                dstG = (srcG * dstG) / 255;
  1.1519 -                dstB = (srcB * dstB) / 255;
  1.1520 -                break;
  1.1521              }
  1.1522              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1523              *dst = dstpixel;
  1.1524 @@ -6005,14 +5357,7 @@
  1.1525                      srcB = (srcB * srcA) / 255;
  1.1526                  }
  1.1527              }
  1.1528 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1529 -            case SDL_COPY_MASK:
  1.1530 -                if (srcA) {
  1.1531 -                    dstR = srcR;
  1.1532 -                    dstG = srcG;
  1.1533 -                    dstB = srcB;
  1.1534 -                }
  1.1535 -                break;
  1.1536 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1537              case SDL_COPY_BLEND:
  1.1538                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1539                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1540 @@ -6023,11 +5368,6 @@
  1.1541                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1542                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1543                  break;
  1.1544 -            case SDL_COPY_MOD:
  1.1545 -                dstR = (srcR * dstR) / 255;
  1.1546 -                dstG = (srcG * dstG) / 255;
  1.1547 -                dstB = (srcB * dstB) / 255;
  1.1548 -                break;
  1.1549              }
  1.1550              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1551              *dst = dstpixel;
  1.1552 @@ -6097,14 +5437,7 @@
  1.1553                      srcB = (srcB * srcA) / 255;
  1.1554                  }
  1.1555              }
  1.1556 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1557 -            case SDL_COPY_MASK:
  1.1558 -                if (srcA) {
  1.1559 -                    dstR = srcR;
  1.1560 -                    dstG = srcG;
  1.1561 -                    dstB = srcB;
  1.1562 -                }
  1.1563 -                break;
  1.1564 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1565              case SDL_COPY_BLEND:
  1.1566                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1567                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1568 @@ -6115,11 +5448,6 @@
  1.1569                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1570                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1571                  break;
  1.1572 -            case SDL_COPY_MOD:
  1.1573 -                dstR = (srcR * dstR) / 255;
  1.1574 -                dstG = (srcG * dstG) / 255;
  1.1575 -                dstB = (srcB * dstB) / 255;
  1.1576 -                break;
  1.1577              }
  1.1578              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1579              *dst = dstpixel;
  1.1580 @@ -6200,14 +5528,7 @@
  1.1581                      srcB = (srcB * srcA) / 255;
  1.1582                  }
  1.1583              }
  1.1584 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1585 -            case SDL_COPY_MASK:
  1.1586 -                if (srcA) {
  1.1587 -                    dstR = srcR;
  1.1588 -                    dstG = srcG;
  1.1589 -                    dstB = srcB;
  1.1590 -                }
  1.1591 -                break;
  1.1592 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1593              case SDL_COPY_BLEND:
  1.1594                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1595                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1596 @@ -6218,11 +5539,6 @@
  1.1597                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1598                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1599                  break;
  1.1600 -            case SDL_COPY_MOD:
  1.1601 -                dstR = (srcR * dstR) / 255;
  1.1602 -                dstG = (srcG * dstG) / 255;
  1.1603 -                dstB = (srcB * dstB) / 255;
  1.1604 -                break;
  1.1605              }
  1.1606              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1607              *dst = dstpixel;
  1.1608 @@ -6280,14 +5596,7 @@
  1.1609                      srcB = (srcB * srcA) / 255;
  1.1610                  }
  1.1611              }
  1.1612 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1613 -            case SDL_COPY_MASK:
  1.1614 -                if (srcA) {
  1.1615 -                    dstR = srcR;
  1.1616 -                    dstG = srcG;
  1.1617 -                    dstB = srcB;
  1.1618 -                }
  1.1619 -                break;
  1.1620 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1621              case SDL_COPY_BLEND:
  1.1622                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1623                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1624 @@ -6298,11 +5607,6 @@
  1.1625                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1626                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1627                  break;
  1.1628 -            case SDL_COPY_MOD:
  1.1629 -                dstR = (srcR * dstR) / 255;
  1.1630 -                dstG = (srcG * dstG) / 255;
  1.1631 -                dstB = (srcB * dstB) / 255;
  1.1632 -                break;
  1.1633              }
  1.1634              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1635              *dst = dstpixel;
  1.1636 @@ -6442,14 +5746,7 @@
  1.1637                      srcB = (srcB * srcA) / 255;
  1.1638                  }
  1.1639              }
  1.1640 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1641 -            case SDL_COPY_MASK:
  1.1642 -                if (srcA) {
  1.1643 -                    dstR = srcR;
  1.1644 -                    dstG = srcG;
  1.1645 -                    dstB = srcB;
  1.1646 -                }
  1.1647 -                break;
  1.1648 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1649              case SDL_COPY_BLEND:
  1.1650                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1651                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1652 @@ -6460,11 +5757,6 @@
  1.1653                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1654                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1655                  break;
  1.1656 -            case SDL_COPY_MOD:
  1.1657 -                dstR = (srcR * dstR) / 255;
  1.1658 -                dstG = (srcG * dstG) / 255;
  1.1659 -                dstB = (srcB * dstB) / 255;
  1.1660 -                break;
  1.1661              }
  1.1662              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1663              *dst = dstpixel;
  1.1664 @@ -6534,14 +5826,7 @@
  1.1665                      srcB = (srcB * srcA) / 255;
  1.1666                  }
  1.1667              }
  1.1668 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1669 -            case SDL_COPY_MASK:
  1.1670 -                if (srcA) {
  1.1671 -                    dstR = srcR;
  1.1672 -                    dstG = srcG;
  1.1673 -                    dstB = srcB;
  1.1674 -                }
  1.1675 -                break;
  1.1676 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1677              case SDL_COPY_BLEND:
  1.1678                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1679                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1680 @@ -6552,11 +5837,6 @@
  1.1681                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1682                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1683                  break;
  1.1684 -            case SDL_COPY_MOD:
  1.1685 -                dstR = (srcR * dstR) / 255;
  1.1686 -                dstG = (srcG * dstG) / 255;
  1.1687 -                dstB = (srcB * dstB) / 255;
  1.1688 -                break;
  1.1689              }
  1.1690              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1691              *dst = dstpixel;
  1.1692 @@ -6637,14 +5917,7 @@
  1.1693                      srcB = (srcB * srcA) / 255;
  1.1694                  }
  1.1695              }
  1.1696 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1697 -            case SDL_COPY_MASK:
  1.1698 -                if (srcA) {
  1.1699 -                    dstR = srcR;
  1.1700 -                    dstG = srcG;
  1.1701 -                    dstB = srcB;
  1.1702 -                }
  1.1703 -                break;
  1.1704 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1705              case SDL_COPY_BLEND:
  1.1706                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1707                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1708 @@ -6655,11 +5928,6 @@
  1.1709                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1710                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1711                  break;
  1.1712 -            case SDL_COPY_MOD:
  1.1713 -                dstR = (srcR * dstR) / 255;
  1.1714 -                dstG = (srcG * dstG) / 255;
  1.1715 -                dstB = (srcB * dstB) / 255;
  1.1716 -                break;
  1.1717              }
  1.1718              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1719              *dst = dstpixel;
  1.1720 @@ -6717,14 +5985,7 @@
  1.1721                      srcB = (srcB * srcA) / 255;
  1.1722                  }
  1.1723              }
  1.1724 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1725 -            case SDL_COPY_MASK:
  1.1726 -                if (srcA) {
  1.1727 -                    dstR = srcR;
  1.1728 -                    dstG = srcG;
  1.1729 -                    dstB = srcB;
  1.1730 -                }
  1.1731 -                break;
  1.1732 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1733              case SDL_COPY_BLEND:
  1.1734                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1735                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1736 @@ -6735,11 +5996,6 @@
  1.1737                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1738                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1739                  break;
  1.1740 -            case SDL_COPY_MOD:
  1.1741 -                dstR = (srcR * dstR) / 255;
  1.1742 -                dstG = (srcG * dstG) / 255;
  1.1743 -                dstB = (srcB * dstB) / 255;
  1.1744 -                break;
  1.1745              }
  1.1746              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1747              *dst = dstpixel;
  1.1748 @@ -6879,14 +6135,7 @@
  1.1749                      srcB = (srcB * srcA) / 255;
  1.1750                  }
  1.1751              }
  1.1752 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1753 -            case SDL_COPY_MASK:
  1.1754 -                if (srcA) {
  1.1755 -                    dstR = srcR;
  1.1756 -                    dstG = srcG;
  1.1757 -                    dstB = srcB;
  1.1758 -                }
  1.1759 -                break;
  1.1760 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1761              case SDL_COPY_BLEND:
  1.1762                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1763                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1764 @@ -6897,11 +6146,6 @@
  1.1765                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1766                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1767                  break;
  1.1768 -            case SDL_COPY_MOD:
  1.1769 -                dstR = (srcR * dstR) / 255;
  1.1770 -                dstG = (srcG * dstG) / 255;
  1.1771 -                dstB = (srcB * dstB) / 255;
  1.1772 -                break;
  1.1773              }
  1.1774              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1775              *dst = dstpixel;
  1.1776 @@ -6971,14 +6215,7 @@
  1.1777                      srcB = (srcB * srcA) / 255;
  1.1778                  }
  1.1779              }
  1.1780 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1781 -            case SDL_COPY_MASK:
  1.1782 -                if (srcA) {
  1.1783 -                    dstR = srcR;
  1.1784 -                    dstG = srcG;
  1.1785 -                    dstB = srcB;
  1.1786 -                }
  1.1787 -                break;
  1.1788 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1789              case SDL_COPY_BLEND:
  1.1790                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1791                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1792 @@ -6989,11 +6226,6 @@
  1.1793                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1794                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1795                  break;
  1.1796 -            case SDL_COPY_MOD:
  1.1797 -                dstR = (srcR * dstR) / 255;
  1.1798 -                dstG = (srcG * dstG) / 255;
  1.1799 -                dstB = (srcB * dstB) / 255;
  1.1800 -                break;
  1.1801              }
  1.1802              dstpixel = ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1803              *dst = dstpixel;
  1.1804 @@ -7074,14 +6306,7 @@
  1.1805                      srcB = (srcB * srcA) / 255;
  1.1806                  }
  1.1807              }
  1.1808 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1809 -            case SDL_COPY_MASK:
  1.1810 -                if (srcA) {
  1.1811 -                    dstR = srcR;
  1.1812 -                    dstG = srcG;
  1.1813 -                    dstB = srcB;
  1.1814 -                }
  1.1815 -                break;
  1.1816 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1817              case SDL_COPY_BLEND:
  1.1818                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1819                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1820 @@ -7092,11 +6317,6 @@
  1.1821                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1822                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1823                  break;
  1.1824 -            case SDL_COPY_MOD:
  1.1825 -                dstR = (srcR * dstR) / 255;
  1.1826 -                dstG = (srcG * dstG) / 255;
  1.1827 -                dstB = (srcB * dstB) / 255;
  1.1828 -                break;
  1.1829              }
  1.1830              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1831              *dst = dstpixel;
  1.1832 @@ -7154,14 +6374,7 @@
  1.1833                      srcB = (srcB * srcA) / 255;
  1.1834                  }
  1.1835              }
  1.1836 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1837 -            case SDL_COPY_MASK:
  1.1838 -                if (srcA) {
  1.1839 -                    dstR = srcR;
  1.1840 -                    dstG = srcG;
  1.1841 -                    dstB = srcB;
  1.1842 -                }
  1.1843 -                break;
  1.1844 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1845              case SDL_COPY_BLEND:
  1.1846                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1847                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1848 @@ -7172,11 +6385,6 @@
  1.1849                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1850                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1851                  break;
  1.1852 -            case SDL_COPY_MOD:
  1.1853 -                dstR = (srcR * dstR) / 255;
  1.1854 -                dstG = (srcG * dstG) / 255;
  1.1855 -                dstB = (srcB * dstB) / 255;
  1.1856 -                break;
  1.1857              }
  1.1858              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1859              *dst = dstpixel;
  1.1860 @@ -7316,14 +6524,7 @@
  1.1861                      srcB = (srcB * srcA) / 255;
  1.1862                  }
  1.1863              }
  1.1864 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1865 -            case SDL_COPY_MASK:
  1.1866 -                if (srcA) {
  1.1867 -                    dstR = srcR;
  1.1868 -                    dstG = srcG;
  1.1869 -                    dstB = srcB;
  1.1870 -                }
  1.1871 -                break;
  1.1872 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1873              case SDL_COPY_BLEND:
  1.1874                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1875                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1876 @@ -7334,11 +6535,6 @@
  1.1877                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1878                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1879                  break;
  1.1880 -            case SDL_COPY_MOD:
  1.1881 -                dstR = (srcR * dstR) / 255;
  1.1882 -                dstG = (srcG * dstG) / 255;
  1.1883 -                dstB = (srcB * dstB) / 255;
  1.1884 -                break;
  1.1885              }
  1.1886              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1887              *dst = dstpixel;
  1.1888 @@ -7408,14 +6604,7 @@
  1.1889                      srcB = (srcB * srcA) / 255;
  1.1890                  }
  1.1891              }
  1.1892 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1893 -            case SDL_COPY_MASK:
  1.1894 -                if (srcA) {
  1.1895 -                    dstR = srcR;
  1.1896 -                    dstG = srcG;
  1.1897 -                    dstB = srcB;
  1.1898 -                }
  1.1899 -                break;
  1.1900 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1901              case SDL_COPY_BLEND:
  1.1902                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1903                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1904 @@ -7426,11 +6615,6 @@
  1.1905                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1906                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1907                  break;
  1.1908 -            case SDL_COPY_MOD:
  1.1909 -                dstR = (srcR * dstR) / 255;
  1.1910 -                dstG = (srcG * dstG) / 255;
  1.1911 -                dstB = (srcB * dstB) / 255;
  1.1912 -                break;
  1.1913              }
  1.1914              dstpixel = ((Uint32)dstB << 16) | ((Uint32)dstG << 8) | dstR;
  1.1915              *dst = dstpixel;
  1.1916 @@ -7511,14 +6695,7 @@
  1.1917                      srcB = (srcB * srcA) / 255;
  1.1918                  }
  1.1919              }
  1.1920 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1921 -            case SDL_COPY_MASK:
  1.1922 -                if (srcA) {
  1.1923 -                    dstR = srcR;
  1.1924 -                    dstG = srcG;
  1.1925 -                    dstB = srcB;
  1.1926 -                }
  1.1927 -                break;
  1.1928 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1929              case SDL_COPY_BLEND:
  1.1930                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1931                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1932 @@ -7529,11 +6706,6 @@
  1.1933                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1934                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1935                  break;
  1.1936 -            case SDL_COPY_MOD:
  1.1937 -                dstR = (srcR * dstR) / 255;
  1.1938 -                dstG = (srcG * dstG) / 255;
  1.1939 -                dstB = (srcB * dstB) / 255;
  1.1940 -                break;
  1.1941              }
  1.1942              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1943              *dst = dstpixel;
  1.1944 @@ -7591,14 +6763,7 @@
  1.1945                      srcB = (srcB * srcA) / 255;
  1.1946                  }
  1.1947              }
  1.1948 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1949 -            case SDL_COPY_MASK:
  1.1950 -                if (srcA) {
  1.1951 -                    dstR = srcR;
  1.1952 -                    dstG = srcG;
  1.1953 -                    dstB = srcB;
  1.1954 -                }
  1.1955 -                break;
  1.1956 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1957              case SDL_COPY_BLEND:
  1.1958                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1959                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1960 @@ -7609,11 +6774,6 @@
  1.1961                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1962                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1963                  break;
  1.1964 -            case SDL_COPY_MOD:
  1.1965 -                dstR = (srcR * dstR) / 255;
  1.1966 -                dstG = (srcG * dstG) / 255;
  1.1967 -                dstB = (srcB * dstB) / 255;
  1.1968 -                break;
  1.1969              }
  1.1970              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1971              *dst = dstpixel;
  1.1972 @@ -7753,14 +6913,7 @@
  1.1973                      srcB = (srcB * srcA) / 255;
  1.1974                  }
  1.1975              }
  1.1976 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.1977 -            case SDL_COPY_MASK:
  1.1978 -                if (srcA) {
  1.1979 -                    dstR = srcR;
  1.1980 -                    dstG = srcG;
  1.1981 -                    dstB = srcB;
  1.1982 -                }
  1.1983 -                break;
  1.1984 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.1985              case SDL_COPY_BLEND:
  1.1986                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.1987                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.1988 @@ -7771,11 +6924,6 @@
  1.1989                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.1990                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.1991                  break;
  1.1992 -            case SDL_COPY_MOD:
  1.1993 -                dstR = (srcR * dstR) / 255;
  1.1994 -                dstG = (srcG * dstG) / 255;
  1.1995 -                dstB = (srcB * dstB) / 255;
  1.1996 -                break;
  1.1997              }
  1.1998              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.1999              *dst = dstpixel;
  1.2000 @@ -7845,14 +6993,7 @@
  1.2001                      srcB = (srcB * srcA) / 255;
  1.2002                  }
  1.2003              }
  1.2004 -            switch (flags & (SDL_COPY_MASK|SDL_COPY_BLEND|SDL_COPY_ADD|SDL_COPY_MOD)) {
  1.2005 -            case SDL_COPY_MASK:
  1.2006 -                if (srcA) {
  1.2007 -                    dstR = srcR;
  1.2008 -                    dstG = srcG;
  1.2009 -                    dstB = srcB;
  1.2010 -                }
  1.2011 -                break;
  1.2012 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
  1.2013              case SDL_COPY_BLEND:
  1.2014                  dstR = srcR + ((255 - srcA) * dstR) / 255;
  1.2015                  dstG = srcG + ((255 - srcA) * dstG) / 255;
  1.2016 @@ -7863,11 +7004,6 @@
  1.2017                  dstG = srcG + dstG; if (dstG > 255) dstG = 255;
  1.2018                  dstB = srcB + dstB; if (dstB > 255) dstB = 255;
  1.2019                  break;
  1.2020 -            case SDL_COPY_MOD:
  1.2021 -                dstR = (srcR * dstR) / 255;
  1.2022 -                dstG = (srcG * dstG) / 255;
  1.2023 -                dstB = (srcB * dstB) / 255;
  1.2024 -                break;
  1.2025              }
  1.2026              dstpixel = ((Uint32)dstA << 24) | ((Uint32)dstR << 16) | ((Uint32)dstG << 8) | dstB;
  1.2027              *dst = dstpixel;
  1.2028 @@ -7881,131 +7017,131 @@
  1.2029  
  1.2030  SDL_BlitFuncEntry SDL_GeneratedBlitFuncTable[] = {
  1.2031      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Scale },
  1.2032 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Blend },
  1.2033 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Blend_Scale },
  1.2034 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Blend },
  1.2035 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Blend_Scale },
  1.2036      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Modulate },
  1.2037      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Modulate_Scale },
  1.2038 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Modulate_Blend },
  1.2039 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale },
  1.2040 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Modulate_Blend },
  1.2041 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale },
  1.2042      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Scale },
  1.2043 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Blend },
  1.2044 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Blend_Scale },
  1.2045 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Blend },
  1.2046 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Blend_Scale },
  1.2047      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Modulate },
  1.2048      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Modulate_Scale },
  1.2049 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Modulate_Blend },
  1.2050 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale },
  1.2051 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Modulate_Blend },
  1.2052 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale },
  1.2053      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Scale },
  1.2054 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Blend },
  1.2055 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Blend_Scale },
  1.2056 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Blend },
  1.2057 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Blend_Scale },
  1.2058      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Modulate },
  1.2059      { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Modulate_Scale },
  1.2060 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Modulate_Blend },
  1.2061 -    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale },
  1.2062 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Modulate_Blend },
  1.2063 +    { SDL_PIXELFORMAT_RGB888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale },
  1.2064      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Scale },
  1.2065 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Blend },
  1.2066 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Blend_Scale },
  1.2067 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Blend },
  1.2068 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Blend_Scale },
  1.2069      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Modulate },
  1.2070      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Modulate_Scale },
  1.2071 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Modulate_Blend },
  1.2072 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale },
  1.2073 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Modulate_Blend },
  1.2074 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale },
  1.2075      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Scale },
  1.2076 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Blend },
  1.2077 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Blend_Scale },
  1.2078 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Blend },
  1.2079 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Blend_Scale },
  1.2080      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Modulate },
  1.2081      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Modulate_Scale },
  1.2082 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Modulate_Blend },
  1.2083 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale },
  1.2084 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Modulate_Blend },
  1.2085 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale },
  1.2086      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Scale },
  1.2087 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Blend },
  1.2088 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Blend_Scale },
  1.2089 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Blend },
  1.2090 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Blend_Scale },
  1.2091      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Modulate },
  1.2092      { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Modulate_Scale },
  1.2093 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Modulate_Blend },
  1.2094 -    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale },
  1.2095 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Modulate_Blend },
  1.2096 +    { SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale },
  1.2097      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Scale },
  1.2098 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Blend },
  1.2099 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Blend_Scale },
  1.2100 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Blend },
  1.2101 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Blend_Scale },
  1.2102      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Modulate },
  1.2103      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Modulate_Scale },
  1.2104 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Modulate_Blend },
  1.2105 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale },
  1.2106 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Modulate_Blend },
  1.2107 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale },
  1.2108      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Scale },
  1.2109 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Blend },
  1.2110 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Blend_Scale },
  1.2111 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Blend },
  1.2112 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Blend_Scale },
  1.2113      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Modulate },
  1.2114      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Modulate_Scale },
  1.2115 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Modulate_Blend },
  1.2116 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale },
  1.2117 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Modulate_Blend },
  1.2118 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale },
  1.2119      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Scale },
  1.2120 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Blend },
  1.2121 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Blend_Scale },
  1.2122 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Blend },
  1.2123 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Blend_Scale },
  1.2124      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Modulate },
  1.2125      { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Modulate_Scale },
  1.2126 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend },
  1.2127 -    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale },
  1.2128 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend },
  1.2129 +    { SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale },
  1.2130      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Scale },
  1.2131 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Blend },
  1.2132 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Blend_Scale },
  1.2133 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Blend },
  1.2134 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Blend_Scale },
  1.2135      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Modulate },
  1.2136      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Modulate_Scale },
  1.2137 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Modulate_Blend },
  1.2138 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale },
  1.2139 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Modulate_Blend },
  1.2140 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale },
  1.2141      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Scale },
  1.2142 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Blend },
  1.2143 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Blend_Scale },
  1.2144 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Blend },
  1.2145 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Blend_Scale },
  1.2146      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Modulate },
  1.2147      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Modulate_Scale },
  1.2148 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Modulate_Blend },
  1.2149 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale },
  1.2150 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Modulate_Blend },
  1.2151 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale },
  1.2152      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Scale },
  1.2153 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Blend },
  1.2154 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Blend_Scale },
  1.2155 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Blend },
  1.2156 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Blend_Scale },
  1.2157      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Modulate },
  1.2158      { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Modulate_Scale },
  1.2159 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend },
  1.2160 -    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale },
  1.2161 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend },
  1.2162 +    { SDL_PIXELFORMAT_RGBA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale },
  1.2163      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Scale },
  1.2164 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Blend },
  1.2165 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Blend_Scale },
  1.2166 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Blend },
  1.2167 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Blend_Scale },
  1.2168      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Modulate },
  1.2169      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Modulate_Scale },
  1.2170 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Modulate_Blend },
  1.2171 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale },
  1.2172 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Modulate_Blend },
  1.2173 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale },
  1.2174      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Scale },
  1.2175 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Blend },
  1.2176 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Blend_Scale },
  1.2177 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Blend },
  1.2178 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Blend_Scale },
  1.2179      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Modulate },
  1.2180      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Modulate_Scale },
  1.2181 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Modulate_Blend },
  1.2182 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale },
  1.2183 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Modulate_Blend },
  1.2184 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale },
  1.2185      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Scale },
  1.2186 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Blend },
  1.2187 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Blend_Scale },
  1.2188 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Blend },
  1.2189 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Blend_Scale },
  1.2190      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Modulate },
  1.2191      { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Modulate_Scale },
  1.2192 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend },
  1.2193 -    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale },
  1.2194 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend },
  1.2195 +    { SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale },
  1.2196      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Scale },
  1.2197 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Blend },
  1.2198 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Blend_Scale },
  1.2199 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Blend },
  1.2200 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Blend_Scale },
  1.2201      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Modulate },
  1.2202      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Modulate_Scale },
  1.2203 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Modulate_Blend },
  1.2204 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale },
  1.2205 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Modulate_Blend },
  1.2206 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_RGB888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale },
  1.2207      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Scale },
  1.2208 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Blend },
  1.2209 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Blend_Scale },
  1.2210 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Blend },
  1.2211 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Blend_Scale },
  1.2212      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Modulate },
  1.2213      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Modulate_Scale },
  1.2214 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Modulate_Blend },
  1.2215 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale },
  1.2216 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Modulate_Blend },
  1.2217 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_BGR888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale },
  1.2218      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Scale },
  1.2219 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Blend },
  1.2220 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Blend_Scale },
  1.2221 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Blend },
  1.2222 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Blend_Scale },
  1.2223      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Modulate },
  1.2224      { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Modulate_Scale },
  1.2225 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend },
  1.2226 -    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale },
  1.2227 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend },
  1.2228 +    { SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB8888, (SDL_COPY_MODULATE_COLOR | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_NEAREST), SDL_CPU_ANY, SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale },
  1.2229      { 0, 0, 0, 0, NULL }
  1.2230  };
  1.2231