abaco: use faster resize instead of resample for image scaling
This commit is contained in:
parent
61c82d2bb8
commit
638a822362
1 changed files with 3 additions and 3 deletions
|
@ -93,11 +93,11 @@ getfilter(Rune *r, int x, int y)
|
||||||
if(x==0 && y==0)
|
if(x==0 && y==0)
|
||||||
return smprint("%s", filtertab[i].filter);
|
return smprint("%s", filtertab[i].filter);
|
||||||
if(x!=0 && y!=0)
|
if(x!=0 && y!=0)
|
||||||
return smprint("%s | resample -x %d -y %d", filtertab[i].filter, x, y);
|
return smprint("%s | resize -x %d -y %d", filtertab[i].filter, x, y);
|
||||||
if(x != 0)
|
if(x != 0)
|
||||||
return smprint("%s | resample -x %d", filtertab[i].filter, x);
|
return smprint("%s | resize -x %d", filtertab[i].filter, x);
|
||||||
/* y != 0 */
|
/* y != 0 */
|
||||||
return smprint("%s | resample -y %d", filtertab[i].filter, y);
|
return smprint("%s | resize -y %d", filtertab[i].filter, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Cimage *cimages = nil;
|
static Cimage *cimages = nil;
|
||||||
|
|
Loading…
Reference in a new issue