kopia lustrzana https://gitlab.com/sane-project/backends
Minor compilation fixes for MacOS X and OS/2.
rodzic
1b983df1ab
commit
c973d82237
|
@ -1,3 +1,8 @@
|
|||
2003-04-27 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* backend/hp5400_internal.c backend/canon630u-common.c
|
||||
backend/epson_scsi.c: Minor compilation fixes for MacOS X and OS/2.
|
||||
|
||||
2003-04-26 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* README.netbsd: Some additions concerning uscanner driver.
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
#ifdef HAVE_OS2_H
|
||||
#include <sys/types.h> /* mode_t */
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include "lm9830.h"
|
||||
|
||||
#define USB_TYPE_VENDOR (0x02 << 5)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* sense handler for the sanei_scsi_XXX comands
|
||||
|
|
|
@ -1223,7 +1223,7 @@ InitScan2 (enum ScanType scantype, struct ScanRequest *req,
|
|||
float pixels = ((float) htons (req->lenx) * (float) htons (req->leny)) *
|
||||
((float) htons (req->dpix) * (float) htons (req->dpiy)) /
|
||||
((float) HW_LPI * (float) HW_LPI);
|
||||
int bpp = rintf ((float) htonl (res.transfersize) / pixels);
|
||||
int bpp = (int) ((float) htonl (res.transfersize) / pixels + 0.5);
|
||||
int planes = (bpp == 1) ? 1 : 3;
|
||||
bpp /= planes;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue