From 197db839e66f33c8a302eec7a5385cf048cd3216 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Tue, 27 Dec 2011 21:48:29 +0100 Subject: [PATCH] fix for strange mac problem? --- tools/image/img2lcd.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/image/img2lcd.pl b/tools/image/img2lcd.pl index 44e3014..4ea48d2 100755 --- a/tools/image/img2lcd.pl +++ b/tools/image/img2lcd.pl @@ -54,6 +54,7 @@ my @img; for my $y (0..$h-1){ for my $x (0..$w-1){ my $px= $image->getPixel($x,$y); + $px=1 if $px>1; $img[$x][($y+4)/8]|=$px<<(7-($y+4)%8); if($verbose){ $px=~y/01/ */; print STDERR $px;