Permalink
Browse files

same initial conditions

  • Loading branch information...
1 parent 4f45ac2 commit 41147b28b4a179c393aa1b9a85b4ae588fec3082 @kthakore kthakore committed Jul 17, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 foo/array_foo.pl
View
@@ -11,7 +11,10 @@
my $app = SDLx::Surface::get_display( width => 200, height => 200 );
my $foo = SDLx::Surface->new( width => 200, height => 200 );
+my $foo_ = SDLx::Surface->new( width => 200, height => 200 );
+my $foo_surf = $foo->surface;
+my $foo__surf = $foo_->surface;
my @update_rects = ( );
@@ -28,15 +31,15 @@ sub a
sub update_rects_test
{
- SDL::Video::update_rects( $foo->surface, @update_rects );
+ SDL::Video::update_rects( $foo_surf, @update_rects );
}
sub update_rects_test_two
{
- SDL::Video::update_rects_fast( $foo->surface, \@update_rects );
+ SDL::Video::update_rects_fast( $foo__surf, \@update_rects );
}

0 comments on commit 41147b2

Please sign in to comment.