plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit a9ecda2da9715bde740aed19f327045ff9260560
parent ff923f10a90e0d71525a850cf181555863497ccf
Author: rsc <devnull@localhost>
Date:   Sat, 29 Oct 2005 17:40:41 +0000

clearer code.

Diffstat:
Msrc/cmd/venti/srv/png.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/cmd/venti/srv/png.c b/src/cmd/venti/srv/png.c @@ -87,9 +87,7 @@ zread(void *va, void *buf, int n) */ for(i=0; i<pixels; i++, b+=4){ a = b[3]; - if(a == 255 || a == 0) - ; - else{ + if(a != 0 && a != 255){ if(b[0] >= a) b[0] = a; b[0] = (b[0]*255)/a;