X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=blobdiff_plain;f=grpapi%2Fgrpapi.cpp;h=fcb1c27632d76a82e7fd40d760f2ae03574f21b0;hb=d1874f14b0ef294d396244b8d2e8da5a9079c365;hp=2cb5e2eb17adf19357846729fc0433335fbf1eff;hpb=0df810495ce1e922f22278469a15014e9b5de5aa;p=grpapi.git diff --git a/grpapi/grpapi.cpp b/grpapi/grpapi.cpp index 2cb5e2e..fcb1c27 100644 --- a/grpapi/grpapi.cpp +++ b/grpapi/grpapi.cpp @@ -567,7 +567,7 @@ void EncodeFrameData(signed short *lpImageData, WORD nFrame, GRPHEADER *lpGrpHea } // Count repeating pixels, nRepeat = number of pixels - 1, ignore if there are less than 4 duplicates - for (nRepeat = 0; lpImageData[i+x+nRepeat] == lpImageData[i+x+nRepeat+1] && x+nRepeat < lpFrameHeader->Left + lpFrameHeader->Width - 1 && nRepeat < 0x3F; nRepeat++) {} + for (nRepeat = 0; lpImageData[i+x+nRepeat] == lpImageData[i+x+nRepeat+1] && x+nRepeat < lpFrameHeader->Left + lpFrameHeader->Width - 1 && nRepeat < 0x3E; nRepeat++) {} if (nRepeat > 2) { lpRowBuf[nBufPos] = 0x41 + nRepeat;