try seperating out surface - not quite working yet
[sdlgit/SDL_perl.git] / t / intergation1.t
index 7b71d66..69c4e07 100644 (file)
@@ -62,7 +62,7 @@ can_ok ('SDL::App', qw/
 
 my $app  = SDL::App->new(-title => "Test", -width => 640, -height => 480, -init => SDL_INIT_VIDEO);
 
-       my $rect = SDL::Rect->new( 0,0, $app->width, $app->height);
+       my $rect = SDL::Rect->new( 0,0, $app->w, $app->h);
 
        my $blue = SDL::Color->new(
                0x00,
@@ -85,12 +85,12 @@ my $app  = SDL::App->new(-title => "Test", -width => 640, -height => 480, -init
        $grect->x($_ ); 
        $grect->centery($_ * 3); 
        $grect->size( ($_ / 40) * $_, ($_/38) * $_ );
-       $app->fill($rect, $blue);
-       $app->fill($grect, $col);
+       $app->fill_rect($rect, $blue);
+       $app->fill_rect($grect, $col);
 
 
-       $app->update($rect);
-       $app->update($grect);
+       $app->update_rects($rect);
+       $app->update_rects($grect);
        $app->sync;
        }