diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-15 11:29:05 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-15 11:29:05 +0200 |
commit | 324a8a71bb7d9e4f8bc49b6bc47efaf9fb58282e (patch) | |
tree | bd2d48a139bfbe869f4f49359b63097931a45e7b /backend/hp-accessor.c | |
parent | 2ca8a81bd0d99fe4d75c229d0e988d8ef710285f (diff) | |
parent | 1edb02101a9306fc711cd422ed507d18165b1691 (diff) |
Merge branch 'release/experimental/1.0.27-1_experimental1'experimental/1.0.27-1_experimental1
Diffstat (limited to 'backend/hp-accessor.c')
-rw-r--r-- | backend/hp-accessor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/hp-accessor.c b/backend/hp-accessor.c index b1acd7c..8b79ad4 100644 --- a/backend/hp-accessor.c +++ b/backend/hp-accessor.c @@ -687,20 +687,20 @@ sanei_hp_accessor_vector_new (HpData data, unsigned length, unsigned depth) } static unsigned short -_gamma_vector_unscale (HpAccessorVector UNUSEDARG this, SANE_Fixed fval) +_gamma_vector_unscale (HpAccessorVector __sane_unused__ this, SANE_Fixed fval) { unsigned short unscaled = fval / SANE_FIX(1.0); if (unscaled > 255) unscaled = 255; - unscaled = 255 - unscaled; /* Dont know why. But this is how it works */ + unscaled = 255 - unscaled; /* Don't know why. But this is how it works. */ return unscaled; } static SANE_Fixed -_gamma_vector_scale (HpAccessorVector UNUSEDARG this, unsigned short val) +_gamma_vector_scale (HpAccessorVector __sane_unused__ this, unsigned short val) { SANE_Fixed scaled; - val = 255-val; /* Dont know why. But this is how it works */ + val = 255-val; /* Don't know why. But this is how it works. */ scaled = val * SANE_FIX(1.0); return scaled; |