diff options
author | rsc <devnull@localhost> | 2005-10-29 17:40:41 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-29 17:40:41 +0000 |
commit | a9ecda2da9715bde740aed19f327045ff9260560 (patch) | |
tree | cdfff693fd214bc1756d2ade3b678e71db2ce285 /src/cmd/venti/srv | |
parent | ff923f10a90e0d71525a850cf181555863497ccf (diff) | |
download | plan9port-a9ecda2da9715bde740aed19f327045ff9260560.tar.gz plan9port-a9ecda2da9715bde740aed19f327045ff9260560.tar.bz2 plan9port-a9ecda2da9715bde740aed19f327045ff9260560.zip |
clearer code.
Diffstat (limited to 'src/cmd/venti/srv')
-rw-r--r-- | src/cmd/venti/srv/png.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/venti/srv/png.c b/src/cmd/venti/srv/png.c index 966b7e96..81ab14c0 100644 --- 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; |