Permalink
Browse files

forgot to change this call to surface. Now calls assert_surface. Simp…

…lified code
  • Loading branch information...
1 parent 6678a7f commit 5c38b468e70a4ffe60163c46d0ff8a06ffb5308e @dod38fr dod38fr committed Oct 15, 2011
Showing with 5 additions and 9 deletions.
  1. +5 −9 src/SDLx/Validate.xs
View
@@ -120,15 +120,11 @@ void *
val_surface( s )
SV *s
PPCODE:
- SV *ret;
- ret = surface(s);
- if(NULL == ret)
- XSRETURN_UNDEF;
- else {
- /* s (hence ret) is already mortal */
- ST(0) = ret;
- XSRETURN(1);
- }
+ assert_surface(s); /* ok or dead */
+ /* ret is already mortal */
+ ST(0) = s;
+ XSRETURN(1);
+
SV *
val_map_rgb( color, format)

0 comments on commit 5c38b46

Please sign in to comment.