From: Kartik Thakore Date: Fri, 16 Oct 2009 00:20:27 +0000 (-0400) Subject: Failing at SDL::Surface::get_pixels X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=793e8806d404a188c7302e0215a49fa1a33d9b48;p=sdlgit%2FSDL_perl.git Failing at SDL::Surface::get_pixels --- diff --git a/src/Surface.xs b/src/Surface.xs index 3a3128a..29e9427 100644 --- a/src/Surface.xs +++ b/src/Surface.xs @@ -144,10 +144,10 @@ IV surface_get_pixels(surface) SDL_Surface *surface CODE: - if (!surface->pixels) croak("Incomplete surface"); - RETVAL = PTR2IV(surface->pixels); + printf("Incomplete surface"); + RETVAL = PTR2IV(surface->pixels); OUTPUT: - RETVAL + RETVAL void surface_set_pixels(surface, pixels)