Failing at SDL::Surface::get_pixels
Kartik Thakore [Fri, 16 Oct 2009 00:20:27 +0000 (20:20 -0400)]
src/Surface.xs

index 3a3128a..29e9427 100644 (file)
@@ -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)