mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-09-07 19:10:34 +00:00
Renamed bx::uint32_min to bx::min. (#116)
This commit is contained in:
committed by
GitHub
parent
abc7dea050
commit
e4294241cd
@@ -1043,7 +1043,7 @@ namespace bimg
|
||||
|
||||
void imageCopy(void* _dst, uint32_t _height, uint32_t _srcPitch, uint32_t _depth, const void* _src, uint32_t _dstPitch)
|
||||
{
|
||||
const uint32_t pitch = bx::uint32_min(_srcPitch, _dstPitch);
|
||||
const uint32_t pitch = bx::min(_srcPitch, _dstPitch);
|
||||
const uint8_t* src = (uint8_t*)_src;
|
||||
uint8_t* dst = (uint8_t*)_dst;
|
||||
|
||||
@@ -5022,7 +5022,7 @@ namespace bimg
|
||||
case TextureFormat::BGRA8:
|
||||
{
|
||||
const uint32_t srcPitch = _width * 4;
|
||||
const uint32_t size = bx::uint32_min(srcPitch, _dstPitch);
|
||||
const uint32_t size = bx::min(srcPitch, _dstPitch);
|
||||
bx::memCopy(_dst, _dstPitch, _src, srcPitch, size, _height);
|
||||
}
|
||||
break;
|
||||
@@ -5051,7 +5051,7 @@ namespace bimg
|
||||
case TextureFormat::RGBA8:
|
||||
{
|
||||
const uint32_t srcPitch = _width * 4;
|
||||
const uint32_t size = bx::uint32_min(srcPitch, _dstPitch);
|
||||
const uint32_t size = bx::min(srcPitch, _dstPitch);
|
||||
bx::memCopy(_dst, _dstPitch, _src, srcPitch, size, _height);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user