kopia lustrzana https://gitlab.com/sane-project/backends
backend/plustek: fix "color-banding" on 64bit
Fixes https://gitlab.com/sane-project/backends/issues/42merge-requests/37/head
rodzic
dc3e6e6e41
commit
d71f5e4bc8
|
@ -1822,7 +1822,7 @@ static void usb_procHighlightAndShadow( Plustek_Device *dev, ScanParam *sp,
|
|||
pg = pr + sp->Size.dwPhyPixels;
|
||||
pb = pg + sp->Size.dwPhyPixels;
|
||||
|
||||
memset(pr, 0, sp->Size.dwPhyPixels * 4UL * 3UL);
|
||||
memset(pr, 0, sp->Size.dwPhyPixels * sizeof(*pr) * 3UL);
|
||||
|
||||
/* Sort hilight */
|
||||
usb_CalSortHighlight(dev, sp, hilight, shading_lines);
|
||||
|
|
Ładowanie…
Reference in New Issue