Various fixes

Former-commit-id: b375cb70e49effc001fb781028bd8b7d07044941 [formerly cbdadfbabd56bed8ffadbf3cbd7175e95908452f]
Former-commit-id: 224bc14061ba65eff9b9d779104c5df95e63e905
This commit is contained in:
Gawaboumga
2016-07-28 19:22:41 +02:00
parent 59868488f0
commit d4b4e3f565
26 changed files with 141 additions and 126 deletions

View File

@@ -1352,6 +1352,15 @@ namespace Nz
void Image::Copy(UInt8* destination, const UInt8* source, PixelFormatType format, unsigned int width, unsigned int height, unsigned int depth, unsigned int dstWidth, unsigned int dstHeight, unsigned int srcWidth, unsigned int srcHeight)
{
#if NAZARA_UTILITY_SAFE
if (width == 0)
NazaraError("Width must be greater than zero");
if (height == 0)
NazaraError("Height must be greater than zero");
if (depth == 0)
NazaraError("Depth must be greater than zero");
#endif
if (dstWidth == 0)
dstWidth = width;