projects
/
sdlgit/SDL_perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
18ef5a2
)
t/core_surface is failing even when t/intergration1 is passing. Why?
Kartik Thakore [Fri, 16 Oct 2009 00:03:20 +0000 (20:03 -0400)]
MANIFEST
patch
|
blob
|
blame
|
history
src/Surface.xs
patch
|
blob
|
blame
|
history
diff --git
a/MANIFEST
b/MANIFEST
index
eb36d5b
..
e61ce50
100644
(file)
--- a/
MANIFEST
+++ b/
MANIFEST
@@
-11,6
+11,7
@@
lib/SDL/Constants.pm
lib/SDL/Cursor.pm
lib/SDL/Event.pm
lib/SDL/Font.pm
+lib/SDL/Game.pm
lib/SDL/Game/Rect.pm
lib/SDL/Mixer.pm
lib/SDL/MPEG.pm
@@
-41,7
+42,7
@@
MacOSX/launcher.h
MacOSX/launcher.m
MacOSX/SDLPerl.icns
make/lib/SDL/Utility.pm
-MANIFEST
+MANIFEST This list of files
MANIFEST.bak
MANIFEST.SKIP
META.yml
@@
-101,6
+102,7
@@
t/apppm.t
t/cdrompm.t
t/colorpm.t
t/constantspm.t
+t/core_surface.t
t/cursorpm.t
t/eventpm.t
t/extendingrect.t
diff --git
a/src/Surface.xs
b/src/Surface.xs
index
a9df9b4
..
3a3128a
100644
(file)
--- a/
src/Surface.xs
+++ b/
src/Surface.xs
@@
-144,6
+144,7
@@
IV
surface_get_pixels(surface)
SDL_Surface *surface
CODE:
+ if (!surface->pixels) croak("Incomplete surface");
RETVAL = PTR2IV(surface->pixels);
OUTPUT:
RETVAL