src/video/sdlgenblit.pl
changeset 1992 7387e0514595
parent 1989 5b5f5de5433f
child 2262 bee005ace1bf
     1.1 --- a/src/video/sdlgenblit.pl	Mon Aug 28 17:35:15 2006 +0000
     1.2 +++ b/src/video/sdlgenblit.pl	Tue Aug 29 08:24:16 2006 +0000
     1.3 @@ -398,7 +398,7 @@
     1.4      for (my $modulate = 0; $modulate <= 1; ++$modulate) {
     1.5          for (my $blend = 0; $blend <= 1; ++$blend) {
     1.6              for (my $scale = 0; $scale <= 1; ++$scale) {
     1.7 -                if ( $modulate != 0 || $blend != 0 || $scale != 0 || $src ne $dst ) {
     1.8 +                if ( $modulate || $blend || $scale ) {
     1.9                      output_copyfuncname("extern int SDLCALL", $src, $dst, $modulate, $blend, $scale, 1, ";\n");
    1.10                  }
    1.11              }
    1.12 @@ -434,7 +434,7 @@
    1.13              for (my $modulate = 0; $modulate <= 1; ++$modulate) {
    1.14                  for (my $blend = 0; $blend <= 1; ++$blend) {
    1.15                      for (my $scale = 0; $scale <= 1; ++$scale) {
    1.16 -                        if ( $modulate != 0 || $blend != 0 || $scale != 0 || $src ne $dst ) {
    1.17 +                        if ( $modulate || $blend || $scale ) {
    1.18                              print FILE "    { SDL_PIXELFORMAT_$src, SDL_PIXELFORMAT_$dst, ";
    1.19                              if ( $modulate ) {
    1.20                                  print FILE "(SDL_TEXTUREMODULATE_COLOR | SDL_TEXTUREMODULATE_ALPHA), ";
    1.21 @@ -497,7 +497,7 @@
    1.22      for (my $modulate = 0; $modulate <= 1; ++$modulate) {
    1.23          for (my $blend = 0; $blend <= 1; ++$blend) {
    1.24              for (my $scale = 0; $scale <= 1; ++$scale) {
    1.25 -                if ( $modulate != 0 || $blend != 0 || $scale != 0 || $src ne $dst ) {
    1.26 +                if ( $modulate || $blend || $scale ) {
    1.27                      output_copyfunc($src, $dst, $modulate, $blend, $scale);
    1.28                  }
    1.29              }