From ddac09aa8508ca62193fb1c576e413312e93b5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 11 May 2017 23:05:02 -0700 Subject: [PATCH] Cleanup. --- include/bimg/encode.h | 2 +- src/image_encode.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bimg/encode.h b/include/bimg/encode.h index ffa1d72..6ac9eec 100644 --- a/include/bimg/encode.h +++ b/include/bimg/encode.h @@ -44,7 +44,7 @@ namespace bimg , void* _dst , uint32_t _width , uint32_t _height - , uint32_t _pitch + , uint32_t _srcPitch , float _edge , const void* _src ); diff --git a/src/image_encode.cpp b/src/image_encode.cpp index 67fb3e7..936ed1d 100644 --- a/src/image_encode.cpp +++ b/src/image_encode.cpp @@ -236,7 +236,7 @@ namespace bimg return max(min(_val, _max), _min); } - void imageMakeDist(bx::AllocatorI* _allocator, void* _dst, uint32_t _width, uint32_t _height, uint32_t _pitch, float _edge, const void* _src) + void imageMakeDist(bx::AllocatorI* _allocator, void* _dst, uint32_t _width, uint32_t _height, uint32_t _srcPitch, float _edge, const void* _src) { const uint32_t numPixels = _width*_height; @@ -246,7 +246,7 @@ namespace bimg for (uint32_t yy = 0; yy < _height; ++yy) { - const uint8_t* src = (const uint8_t*)_src + yy*_pitch; + const uint8_t* src = (const uint8_t*)_src + yy*_srcPitch; double* dst = &imgIn[yy*_width]; for (uint32_t xx = 0; xx < _width; ++xx) {