summaryrefslogtreecommitdiff
path: root/backend/hp-accessor.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:25:39 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:25:39 +0200
commit1edb02101a9306fc711cd422ed507d18165b1691 (patch)
treebd2d48a139bfbe869f4f49359b63097931a45e7b /backend/hp-accessor.c
parent2ca8a81bd0d99fe4d75c229d0e988d8ef710285f (diff)
move from support/1.0.27 to feature/1.0.27
Diffstat (limited to 'backend/hp-accessor.c')
-rw-r--r--backend/hp-accessor.c8
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;