From: ShadowFlare Date: Sun, 10 Sep 2006 05:37:08 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?p=grpapi.git;a=commitdiff_plain;h=f7234247672bf3a40fdc28e0935daf4951aafef8 --- diff --git a/grpapi/grpapi.cpp b/grpapi/grpapi.cpp index 7cc25b0..6712ead 100644 --- a/grpapi/grpapi.cpp +++ b/grpapi/grpapi.cpp @@ -539,7 +539,7 @@ HANDLE GRPAPI WINAPI CreateGrp(signed short *lpImageData, WORD nFrames, WORD wMa for (y = 0; y < lpFrameHeaders[i].Height; y++) { for (x = 0; x < lpFrameHeaders[i].Width; x++) { lpGrpData[lpFrameHeaders[i].Offset + y * lpFrameHeaders[i].Width + x] = - lpImageData[i * wMaxWidth * wMaxHeight + (lpFrameHeaders[i].Top + y) * wMaxWidth + lpFrameHeaders[i].Left + x]; + (BYTE)lpImageData[i * wMaxWidth * wMaxHeight + (lpFrameHeaders[i].Top + y) * wMaxWidth + lpFrameHeaders[i].Left + x]; } } } @@ -555,7 +555,7 @@ HANDLE GRPAPI WINAPI CreateGrp(signed short *lpImageData, WORD nFrames, WORD wMa void EncodeFrameData(signed short *lpImageData, WORD nFrame, GRPHEADER *lpGrpHeader, FRAMEHEADER *lpFrameHeader, FRAMEDATA *lpFrameData) { - int x, y, i, j, nBufPos, nRepeat; + int x, y, i, nBufPos, nRepeat; LPBYTE lpRowBuf; WORD nLastOffset;