sane.ds: Remove unused variables.
This commit is contained in:
parent
cbc6ef9e91
commit
474899dbcd
|
@ -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)
|
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)
|
if (unit != SANE_UNIT_MM)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (twtype != TWUN_INCHES)
|
if (twtype != TWUN_INCHES)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
d = (sane_res / 10.0) / 2.54;
|
|
||||||
convert_double_fix32((sane_res / 10.0) / 2.54, twain_res);
|
convert_double_fix32((sane_res / 10.0) / 2.54, twain_res);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -92,14 +92,13 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH: {
|
case DLL_PROCESS_ATTACH: {
|
||||||
#ifdef SONAME_LIBSANE
|
#ifdef SONAME_LIBSANE
|
||||||
SANE_Status status;
|
|
||||||
SANE_Int version_code;
|
SANE_Int version_code;
|
||||||
|
|
||||||
libsane_handle = open_libsane();
|
libsane_handle = open_libsane();
|
||||||
if (! libsane_handle)
|
if (! libsane_handle)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
status = psane_init (&version_code, NULL);
|
psane_init (&version_code, NULL);
|
||||||
#endif
|
#endif
|
||||||
SANE_instance = hinstDLL;
|
SANE_instance = hinstDLL;
|
||||||
DisableThreadLibraryCalls(hinstDLL);
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
|
|
Loading…
Reference in New Issue