Skip to content
Snippets Groups Projects
Commit 4574601b authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Fix wrong bytes calculation.

parent c05914ae
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ static size_t add_padding(void *dest, const void *src, size_t total,
j += line_size;
if (pp)
pixel = (char *)src + i - 1;
for (k = 0; k < padding_size / pixel_size; k += pixel_size)
for (k = 0; k < padding_size; k += pixel_size)
memcpy((char *)dest + j + k, pixel, pixel_size);
j += padding_size;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment