From 80549b7acee8805a310ade4194343f9175ac57ab Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 22 Oct 2004 21:24:35 +0000 Subject: [PATCH] calculate red more sensibly --- layout/layout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/layout b/layout/layout index 217ec66..5e1a01b 100755 --- a/layout/layout +++ b/layout/layout @@ -666,7 +666,7 @@ print DEBUG "ps $p0 $p1 $lenperp ($ppu)\n"; $red += 32 if $segments[0] =~ m/^\-/; $red %= 64; $red <<= 2; - $red /= 64.0; + $red /= 255.0; $red= sprintf("%f", $red); o(" $red $subsegcmap{$csegbare} setrgbcolor\n"); } else { -- 2.30.2