This commit is contained in:
Branimir Karadžić
2017-05-11 23:05:02 -07:00
parent 10a681d5b7
commit ddac09aa85
2 changed files with 3 additions and 3 deletions

View File

@@ -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
);

View File

@@ -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)
{