Current News Archived News Search News Discussion Forum Old Forum Install Programs More Downloads... Troubleshooting Source Code Format Specs. Misc. Information Non-SF Stuff Links Small banner for links to this site: |
diff --git a/drawgrp/drawgrp.cpp b/drawgrp/drawgrp.cpp
--- a/drawgrp/drawgrp.cpp
+++ b/drawgrp/drawgrp.cpp
SetFunctionSetPixel((SETPIXELPROC)WritePixelToBuffer);\r
for (i=0;i<GrpInfo.nFrames;i++) {\r
BI.nFrame = i;\r
+ for (y = 0; y < BI.nHeight; y++) {\r
+ for (x = 0; x < BI.nWidth; x++) {\r
+ WritePixelToBuffer(&BI, x, y, 45);\r
+ }\r
+ }\r
DrawGrp(hGrp,(HDC)&BI,0,0,i,0,USE_INDEX,0);\r
}\r
hGrp2 = hGrp;\r
diff --git a/grpapi/grpapi.cpp b/grpapi/grpapi.cpp
--- a/grpapi/grpapi.cpp
+++ b/grpapi/grpapi.cpp
@@ -567,7 +567,7 @@ void EncodeFrameData(signed short *lpImageData, WORD nFrame, GRPHEADER *lpGrpHea
}\r
\r
// Count repeating pixels, nRepeat = number of pixels - 1, ignore if there are less than 4 duplicates\r
- for (nRepeat = 0; lpImageData[i+x+nRepeat] == lpImageData[i+x+nRepeat+1] && x+nRepeat < lpFrameHeader->Left + lpFrameHeader->Width - 1 && nRepeat < 0x3F; nRepeat++) {}\r
+ for (nRepeat = 0; lpImageData[i+x+nRepeat] == lpImageData[i+x+nRepeat+1] && x+nRepeat < lpFrameHeader->Left + lpFrameHeader->Width - 1 && nRepeat < 0x3E; nRepeat++) {}\r
\r
if (nRepeat > 2) {\r
lpRowBuf[nBufPos] = 0x41 + nRepeat;\r
|