Skip to content

Commit

Permalink
fix for issue atc1441#3
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence Bank authored and Laurence Bank committed Dec 19, 2021
1 parent 5a85959 commit 26ff2c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Firmware/src/obd.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26ff2c5

Please sign in to comment.