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
474899db
Commit
474899db
authored
Jul 21, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Remove unused variables.
parent
cbc6ef9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
options.c
dlls/sane.ds/options.c
+0
-3
sane_main.c
dlls/sane.ds/sane_main.c
+1
-2
No files found.
dlls/sane.ds/options.c
View file @
474899db
...
...
@@ -252,15 +252,12 @@ static void convert_double_fix32(double d, TW_FIX32 *fix32)
BOOL
convert_sane_res_to_twain
(
double
sane_res
,
SANE_Unit
unit
,
TW_FIX32
*
twain_res
,
TW_UINT16
twtype
)
{
double
d
;
if
(
unit
!=
SANE_UNIT_MM
)
return
FALSE
;
if
(
twtype
!=
TWUN_INCHES
)
return
FALSE
;
d
=
(
sane_res
/
10
.
0
)
/
2
.
54
;
convert_double_fix32
((
sane_res
/
10
.
0
)
/
2
.
54
,
twain_res
);
return
TRUE
;
...
...
dlls/sane.ds/sane_main.c
View file @
474899db
...
...
@@ -92,14 +92,13 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
case
DLL_PROCESS_ATTACH
:
{
#ifdef SONAME_LIBSANE
SANE_Status
status
;
SANE_Int
version_code
;
libsane_handle
=
open_libsane
();
if
(
!
libsane_handle
)
return
FALSE
;
status
=
psane_init
(
&
version_code
,
NULL
);
psane_init
(
&
version_code
,
NULL
);
#endif
SANE_instance
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
...
...
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