Added Some fixes
Kartik Thakore [Mon, 3 Aug 2009 01:56:31 +0000 (21:56 -0400)]
.gitignore
lib/SDL/App.pm
src/SDL.xs

index 30d1556..94cc825 100644 (file)
@@ -6,3 +6,4 @@ lib/SDL/Config.pm
 SDL/
 SDL_perl.c
 SDL_perl.xs
+stage
\ No newline at end of file
index f13d227..fe61fe5 100644 (file)
@@ -80,8 +80,8 @@ sub new {
        } else {
                $SDL::App::USING_OPENGL = 0;
        }
-       my $self = SDL::SetVideoMode($w,$h,$d,$f);
-               $$self
+       my $self = \SDL::SetVideoMode($w,$h,$d,$f);
+               $$self  
                or die SDL::GetError();
        
        if ($ic and -e $ic) {
index b880c5c..f04ad58 100644 (file)
@@ -535,7 +535,7 @@ PeepEvents( e, numevents, action, mask)
        SDL_eventaction action
        Uint32 mask
        CODE:
-               RETVAL = SDL_PeepEvents( e, numevents, action, mask);
+               RETVAL = (int)SDL_PeepEvents( e, numevents, action, mask);
        OUTPUT:
                RETVAL