Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e69785ee
Commit
e69785ee
authored
Aug 06, 2023
by
Ilia Docin
Committed by
Alexandre Julliard
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Add maximum scanning dimensions setting support.
parent
0774873e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
capability.c
dlls/sane.ds/capability.c
+5
-1
No files found.
dlls/sane.ds/capability.c
View file @
e69785ee
...
...
@@ -823,6 +823,7 @@ static TW_UINT16 SANE_ICAPSupportedSizes (pTW_CAPABILITY pCapability, TW_UINT16
static
TW_UINT32
possible_values
[
ARRAY_SIZE
(
supported_sizes
)];
unsigned
int
i
;
TW_UINT32
val
;
double
max_width
,
max_height
;
TW_UINT16
default_size
=
get_default_paper_size
(
supported_sizes
,
ARRAY_SIZE
(
supported_sizes
));
TW_UINT16
current_size
=
get_current_paper_size
(
supported_sizes
,
ARRAY_SIZE
(
supported_sizes
));
...
...
@@ -849,7 +850,10 @@ static TW_UINT16 SANE_ICAPSupportedSizes (pTW_CAPABILITY pCapability, TW_UINT16
for
(
i
=
1
;
i
<
ARRAY_SIZE
(
supported_sizes
);
i
++
)
if
(
supported_sizes
[
i
].
size
==
val
)
return
set_width_height
(
supported_sizes
[
i
].
x
,
supported_sizes
[
i
].
y
);
/* TWAIN: For devices that support physical dimensions TWSS_NONE indicates that the maximum
image size supported by the device is to be used. */
if
(
val
==
TWSS_NONE
&&
get_width_height
(
&
max_width
,
&
max_height
,
TRUE
)
==
TWCC_SUCCESS
)
return
set_width_height
(
max_width
,
max_height
);
ERR
(
"Unsupported size %ld
\n
"
,
val
);
twCC
=
TWCC_BADCAP
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment