diff options
Diffstat (limited to 'src/cmd')
-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; |