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




ShadowFlare [Sat, 9 Sep 2006 09:23:27 +0000 (09:23 +0000)]
drawgrp/drawgrp.cpp
grpapi/grpapi.cpp

index f446793..06af64f 100644 (file)
@@ -96,6 +96,11 @@ int main(int argc, char* argv[])
        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
index 2cb5e2e..fcb1c27 100644 (file)
@@ -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