mirror of
https://github.com/RoCry/blozi-etag.git
synced 2025-12-06 09:02:49 +08:00
fix for issue #3
This commit is contained in:
@@ -2311,11 +2311,10 @@ int i, x, y, iPitch, iSize;
|
||||
int xStart, xEnd, yStart, yEnd, yDst, xDst, dx, dy;
|
||||
uint8_t ucSrcMask, ucDstMask, *s, *d;
|
||||
|
||||
iPitch = pOBD->width;
|
||||
|
||||
if (pDestination == NULL || pOBD == NULL || pOBD->ucScreen == NULL)
|
||||
return -1;
|
||||
// calculate output buffer size
|
||||
iPitch = pOBD->width;
|
||||
if (iFlags & OBD_HORZ_BYTES) {
|
||||
if (iFlags & OBD_ROTATE_90)
|
||||
iSize = ((pOBD->height + 7)>>3) * pOBD->width;
|
||||
|
||||
Reference in New Issue
Block a user