src/video/sdlgenblit.pl
changeset 5140 e743b9c3f6d6
parent 2859 99210400e8b9
child 5149 be02be2ea897
     1.1 --- a/src/video/sdlgenblit.pl	Mon Jan 31 22:53:45 2011 -0800
     1.2 +++ b/src/video/sdlgenblit.pl	Mon Jan 31 23:23:57 2011 -0800
     1.3 @@ -83,7 +83,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-2009 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 @@ -238,14 +238,7 @@
    1.13                      ${s}B = (${s}B * ${s}A) / 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 (${s}A) {
    1.19 -                    ${d}R = ${s}R;
    1.20 -                    ${d}G = ${s}G;
    1.21 -                    ${d}B = ${s}B;
    1.22 -                }
    1.23 -                break;
    1.24 +            switch (flags & (SDL_COPY_BLEND|SDL_COPY_ADD)) {
    1.25              case SDL_COPY_BLEND:
    1.26                  ${d}R = ${s}R + ((255 - ${s}A) * ${d}R) / 255;
    1.27                  ${d}G = ${s}G + ((255 - ${s}A) * ${d}G) / 255;
    1.28 @@ -256,11 +249,6 @@
    1.29                  ${d}G = ${s}G + ${d}G; if (${d}G > 255) ${d}G = 255;
    1.30                  ${d}B = ${s}B + ${d}B; if (${d}B > 255) ${d}B = 255;
    1.31                  break;
    1.32 -            case SDL_COPY_MOD:
    1.33 -                ${d}R = (${s}R * ${d}R) / 255;
    1.34 -                ${d}G = (${s}G * ${d}G) / 255;
    1.35 -                ${d}B = (${s}B * ${d}B) / 255;
    1.36 -                break;
    1.37              }
    1.38  __EOF__
    1.39      }
    1.40 @@ -410,7 +398,7 @@
    1.41                                  }
    1.42                              }
    1.43                              if ( $blend ) {
    1.44 -                                $flag = "SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD";
    1.45 +                                $flag = "SDL_COPY_BLEND | SDL_COPY_ADD";
    1.46                                  if ( $flags eq "" ) {
    1.47                                      $flags = $flag;
    1.48                                  } else {