kopia lustrzana https://gitlab.com/sane-project/backends
lineart fix
rodzic
245db82a37
commit
15e256f8b0
|
|
@ -4732,7 +4732,7 @@ genesys_fill_segmented_buffer (Genesys_Device * dev, uint8_t *work_buffer_dst, s
|
|||
int depth,i;
|
||||
|
||||
depth = dev->settings.depth;
|
||||
if (dev->settings.scan_mode == SCAN_MODE_LINEART)
|
||||
if (dev->settings.scan_mode == SCAN_MODE_LINEART && dev->settings.dynamic_lineart==SANE_FALSE)
|
||||
depth = 1;
|
||||
|
||||
/* fill buffer if needed */
|
||||
|
|
|
|||
|
|
@ -2602,7 +2602,11 @@ gl847_init_regs_for_scan (Genesys_Device * dev)
|
|||
flags = 0;
|
||||
|
||||
/* emulated lineart from gray data is required for now */
|
||||
flags |= SCAN_FLAG_DYNAMIC_LINEART;
|
||||
if(dev->settings.scan_mode == SCAN_MODE_LINEART
|
||||
&& dev->settings.dynamic_lineart)
|
||||
{
|
||||
flags |= SCAN_FLAG_DYNAMIC_LINEART;
|
||||
}
|
||||
|
||||
/* backtracking isn't handled well, so don't enable it */
|
||||
flags |= SCAN_FLAG_DISABLE_BUFFER_FULL_MOVE;
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue