Using Rect as Blessed but backward compatible constructor.
[sdlgit/SDL_perl.git] / t / rectpm.t
index 2414ec2..8e4dcc0 100644 (file)
@@ -55,7 +55,7 @@ can_ok ('SDL::Rect', qw/
        left
         /);
 
-my $rect = SDL::Rect->new();
+my $rect = SDL::Rect->new(0,0,0,0);
 
 # creating with defaults
 isa_ok ($rect,'SDL::Rect');