diff options
author | hpa <hpa> | 2001-04-10 04:13:30 +0000 |
---|---|---|
committer | hpa <hpa> | 2001-04-10 04:13:30 +0000 |
commit | 9b8d2d368876abd5f61bc4d04662685379c6dbc9 (patch) | |
tree | 9c9cffe9b0a34725fddd178e4ccf5604a1881635 /lss16toppm | |
parent | 4b61beeb603e0c18d5383682dcd854041396430e (diff) | |
download | syslinux-9b8d2d368876abd5f61bc4d04662685379c6dbc9.tar.gz |
Use Perl constructs that are somewhat cleaner.syslinux-1.60
Diffstat (limited to 'lss16toppm')
-rwxr-xr-x | lss16toppm | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -101,11 +101,8 @@ for ( $y = 0 ; $y < $ysize ; $y++ ) { # Truncate overlong runs $c = $xsize-$x if ( $c > $xsize-$x ); # Output run - while ( $c ) { - print $color{$n}; - $c--; - $x++; - } + print $color{$n} x $c; + $x += $c; } } } |