kopia lustrzana https://gitlab.com/sane-project/backends
fix for #315050
- handle case where linesel is rounded to 0 when scan y resolution is below minimal scan resolution but higher than half of the minimummerge-requests/1/head
rodzic
753d123f36
commit
06d876f74e
|
@ -864,6 +864,12 @@ gl124_init_motor_regs_scan (Genesys_Device * dev,
|
||||||
{
|
{
|
||||||
yres=min_speed;
|
yres=min_speed;
|
||||||
linesel=yres/scan_yres-1;
|
linesel=yres/scan_yres-1;
|
||||||
|
/* limit case, we need a linesel > 0 */
|
||||||
|
if(linesel==0)
|
||||||
|
{
|
||||||
|
linesel=1;
|
||||||
|
yres=scan_yres*2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue