summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-27 18:21:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-27 18:21:58 +0200
commit047b94d3cbb3efbfdd2a7b3600791cb0d7415709 (patch)
tree09638f9935fd9234a9c499a35f9e24f8ca46e1c7 /index.pl
parente1e714f3e7b95640ee7b9ac6f20314857fd4c32a (diff)
render_image: do not display overlong lines
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 5e792aa..79c1470 100644
--- a/index.pl
+++ b/index.pl
@@ -496,6 +496,8 @@ sub render_image {
my ( $line, $destination, $etr, undef ) = @{$d};
+ $line = substr($line, 0, 4);
+
$png->draw_at( 0, $line );
$png->draw_at( 25, $destination );