diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-02-16 18:25:42 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-02-16 18:25:42 +0100 | 
| commit | 64ddd1a4dfcefd11f662f5cf4bb05b590d901a97 (patch) | |
| tree | 4303648095deff998ae20c2393b56db527742ac9 /backend/sharp.c | |
| parent | 5793a221e112fa49073de0137d6bfa750a61b0a1 (diff) | |
| parent | ecaaf250cb33ff61f37a7b441f2337584a655350 (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/sharp.c')
| -rw-r--r-- | backend/sharp.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/backend/sharp.c b/backend/sharp.c index 701b179..d533103 100644 --- a/backend/sharp.c +++ b/backend/sharp.c @@ -18,9 +18,7 @@     General Public License for more details.     You should have received a copy of the GNU General Public License -   along with this program; if not, write to the Free Software -   Foundation, Inc., 59 Temple Place - Suite 330, Boston, -   MA 02111-1307, USA. +   along with this program.  If not, see <https://www.gnu.org/licenses/>.     As a special exception, the authors of SANE give permission for     additional uses of the libraries contained in this release of SANE. @@ -1678,7 +1676,7 @@ set_gamma_caps(SHARP_Scanner *s)  /* The next function is a slightly modified version of sanei_constrain_value     Instead of returning status information like STATUS_INVAL, it adjusts -   an invaild value to the nearest allowed one. +   an invalid value to the nearest allowed one.  */  static void  clip_value (const SANE_Option_Descriptor * opt, void * value) @@ -2096,7 +2094,7 @@ init_options (SHARP_Scanner * s)  #ifdef USE_COLOR_THRESHOLD    s->opt[OPT_THRESHOLD_R].name = SANE_NAME_THRESHOLD "-red"; -  /* xxx the titles and decriptions are confusing: +  /* xxx the titles and descriptions are confusing:       "set white point (red)"       Any idea? maybe "threshold to get the red component on"    */ @@ -3145,7 +3143,7 @@ sprint_gamma(Option_Value val, SANE_Byte *dst)    SANE_Byte *p = dst;    p += sprintf((char *) p, "%i", val.wa[0] > 255 ? 255 : val.wa[0]); -  /* val.wa[i] is over 255, so val.wa[i] is limitied to 255 */ +  /* val.wa[i] is over 255, so val.wa[i] is limited to 255 */    for (i = 1; i < 256; i++)      p += sprintf((char *) p, ",%i", val.wa[i] > 255 ? 255 : val.wa[i]);    return p - dst; | 
