Commit ac83c811 authored by Gerhard Jäger's avatar Gerhard Jäger

Merge branch 'plustek-fix-color-banding-64bit' into 'master'

backend/plustek: fix "color-banding" on 64bit

Closes #42

See merge request !33
parents 36648cba d71f5e4b
Pipeline #41747259 passed with stages
in 7 minutes and 23 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment