Skip to content
Commit 018bf2f2 authored by Siarhei Siamashka's avatar Siarhei Siamashka Committed by Adam Jackson
Browse files

test: Fix stride calculation in stress-test



Currently the number of bits per pixel is used instead of the
number of bytes per pixel when calculating image strides. This
does not cause any real problems, but the gaps between scanlines
are excessively large.

This patch actually converts bits to bytes and rounds up the result
to the nearest byte boundary.

Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
Reviewed-by: default avatar <soren.sandmann@gmail.com>
parent bd2b4918
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment