add vertical padding to slide overview
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 20 Oct 2009 17:38:56 +0000 (19:38 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 20 Oct 2009 17:38:56 +0000 (19:38 +0200)
lib/HTML5TV/Slides.pm

index 23d3b52..0aa56dd 100644 (file)
@@ -82,7 +82,7 @@ sub show {
 
                                $self->{app} = SDL::App->new(
                                        -width  => $w,
-                                       -height => $h * 2,
+                                       -height => ( $h * 2 ) + 20,
                                        -depth  => 24,
                                        -title  => 'Slides',
                                );
@@ -100,6 +100,7 @@ sub show {
                if ( $x >= $w ) {
                        $x = 0;
                        $y += $h / $factor;
+                       $y += 5;
                }
 
        }