WLog_ERR(TAG, "Format %s not supported!", GetColorFormatName(DstFormat));
}
- if (nDstStep < 0)
+ if (nDstStep <= 0)
nDstStep = dstBytesPerPixel * nWidth;
nDstPad = (nDstStep - (nWidth * dstBytesPerPixel));
BYTE* dptr = (BYTE*) pDst;
int sRowBump = srcStep - width * sizeof(UINT32);
int dRowBump = dstStep - width * sizeof(UINT32);
- int h;
+ UINT32 h;
/* Shift left by "shift" and divide by two is the same as shift
* left by "shift-1".
*/
for (h = 0; h < height; h++)
{
- int w = width;
+ UINT32 w = width;
BOOL onStride;
/* Get to a 16-byte destination boundary. */
if ((ULONG_PTR) dptr & 0x0f)
{
pstatus_t status;
- int startup = (16 - ((ULONG_PTR) dptr & 0x0f)) / 4;
+ UINT32 startup = (16 - ((ULONG_PTR) dptr & 0x0f)) / 4;
if (startup > width) startup = width;
BYTE* dptr = (BYTE*) pDst;
int sRowBump = srcStep - width * sizeof(UINT32);
int dRowBump = dstStep - width * sizeof(UINT32);
- int h;
+ UINT32 h;
/* Shift left by "shift" and divide by two is the same as shift
* left by "shift-1".
*/
if ((ULONG_PTR) dptr & 0x0f)
{
pstatus_t status;
- int startup = (16 - ((ULONG_PTR) dptr & 0x0f)) / 4;
+ UINT32 startup = (16 - ((ULONG_PTR) dptr & 0x0f)) / 4;
if (startup > width) startup = width;