From 8922e43dbb12054984dc5dff3d51a7c0bf7ed4dc Mon Sep 17 00:00:00 2001 From: doyle Date: Sat, 4 Jul 2020 19:42:08 +1000 Subject: [PATCH] Advance pixel pointer in unrolled ImageDraw --- RaylibSIMD.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RaylibSIMD.h b/RaylibSIMD.h index e520526..7375b0c 100644 --- a/RaylibSIMD.h +++ b/RaylibSIMD.h @@ -246,6 +246,8 @@ void RaylibSIMD_ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dst for (int x = 0; x < (int)srcRec.width; x++) { RaylibSIMD__SoftwareBlendPixel(src_ptr, dest_ptr, tint, src_alpha_min); + src_ptr += bytesPerPixelSrc; + dest_ptr += bytesPerPixelDst; } src_row += strideSrc;