mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
clearer code.
This commit is contained in:
parent
ff923f10a9
commit
a9ecda2da9
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue