Permalink
Browse files

using reference to pointer incorrectly

  • Loading branch information...
1 parent 9c32b17 commit 71b5df03d47e46966982e2f3280f3e6e773ff563 @kthakore kthakore committed Jul 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 t/core_surface.t
View
@@ -119,7 +119,7 @@ SDL::Video::update_rects( $app, $small_rect );
my $ref = $surface->get_pixels_ptr;
-my $other_surface = SDL::Surface->new_from( $$ref, 640, 320, 8, $surface->pitch, 0, 0, 0, 0 );
+my $other_surface = SDL::Surface->new_from( $ref, 640, 320, 8, $surface->pitch, 0, 0, 0, 0 );
my $get_pixel = $surface->get_pixel(0);
ok( $get_pixel >= 0, "[get_pixel] returns integer ($get_pixel)" );
$surface->set_pixels(0, 42); pass '[set_pixel] first pixel to 42' ;

0 comments on commit 71b5df0

Please sign in to comment.