Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
[sdlgit/SDL_perl.git] / lib / SDL.pm
index 0e79ebb..0778469 100644 (file)
@@ -54,12 +54,11 @@ sub import {
   $self->export_to_level(1, @_);
   SDL::Constants->export_to_level(1);
 }
-
-$VERSION = '2.2.1';
+$VERSION = '2.2.2.11';
 
 print "$VERSION" if (defined($ARGV[0]) && ($ARGV[0] eq '--SDLperl'));
 
-$SDL::DEBUG=1;
+$SDL::DEBUG=0;
 
 sub NULL {
        return 0;
@@ -68,7 +67,7 @@ sub NULL {
 sub in {
        my ($k,@t) = @_;
        return 0 unless defined $k;
-       my $r = ($k ~~ @t);
+       my $r = ((scalar grep { defined $_ && $_ eq $k } @t) <=> 0);
        return 0 if $r eq '';
        return $r;