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 [Sun, 10 Sep 2006 05:37:08 +0000 (05:37 +0000)]
grpapi/grpapi.cpp

index 7cc25b0..6712ead 100644 (file)
@@ -539,7 +539,7 @@ HANDLE GRPAPI WINAPI CreateGrp(signed short *lpImageData, WORD nFrames, WORD wMa
                                for (y = 0; y < lpFrameHeaders[i].Height; y++) {\r
                                        for (x = 0; x < lpFrameHeaders[i].Width; x++) {\r
                                                lpGrpData[lpFrameHeaders[i].Offset + y * lpFrameHeaders[i].Width + x] =\r
-                                                       lpImageData[i * wMaxWidth * wMaxHeight + (lpFrameHeaders[i].Top + y) * wMaxWidth + lpFrameHeaders[i].Left + x];\r
+                                                       (BYTE)lpImageData[i * wMaxWidth * wMaxHeight + (lpFrameHeaders[i].Top + y) * wMaxWidth + lpFrameHeaders[i].Left + x];\r
                                        }\r
                                }\r
                        }\r
@@ -555,7 +555,7 @@ HANDLE GRPAPI WINAPI CreateGrp(signed short *lpImageData, WORD nFrames, WORD wMa
 \r
 void EncodeFrameData(signed short *lpImageData, WORD nFrame, GRPHEADER *lpGrpHeader, FRAMEHEADER *lpFrameHeader, FRAMEDATA *lpFrameData)\r
 {\r
-       int x, y, i, j, nBufPos, nRepeat;\r
+       int x, y, i, nBufPos, nRepeat;\r
        LPBYTE lpRowBuf;\r
        WORD nLastOffset;\r
 \r