From 1a2ee3a4c7bbd00add823c6792cb8b8f724016ea Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Tue, 1 Oct 2002 16:19:11 +0000 Subject: [PATCH] Added paragraph about checking geometry (from TODO). --- doc/backend-writing.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/backend-writing.txt b/doc/backend-writing.txt index 25942fc77..8bd7c2109 100644 --- a/doc/backend-writing.txt +++ b/doc/backend-writing.txt @@ -1,4 +1,4 @@ -2002-07-17 +2002-10-01 Here are a few rules and tips that should help writing a SANE-conformant backend and including it into the SANE package: @@ -154,6 +154,11 @@ PROGRAMMING * To support translation of SANE options, please mark the descriptions (desc) and title of options with SANE_I18N(). See po/README for details. +* Please check for TL_X < BR_X and TL_Y < BR_Y to avoid segfaults or even + scanner damage. This should NOT be done in sane_control_option, it should + be possible to temporary set TL_X > BR_X or TL_ > BR, otherwise it is hard + for a frontend to set the correct values. + TESTING -------