mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
6414271c91
47 changed files with 3341 additions and 1968 deletions
|
|
@ -73,8 +73,11 @@ struct SkScalerContextRec {
|
|||
return SkIntToScalar(fContrast) / ((1 << 8) - 1);
|
||||
}
|
||||
void setContrast(SkScalar c) {
|
||||
SkASSERT(0 <= c && c <= SK_Scalar1);
|
||||
fContrast = SkScalarRoundToInt(c * ((1 << 8) - 1));
|
||||
if (0 <= c && c <= SK_Scalar1) {
|
||||
fContrast = SkScalarRoundToInt(c * ((1 << 8) - 1));
|
||||
} else {
|
||||
fContrast = SkScalarRoundToInt(0.5f * ((1 << 8) - 1));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue