From: ShadowFlare Date: Sat, 21 Oct 2006 20:37:29 +0000 (+0000) Subject: Bug fix for detection of uncompressed GRP files X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=commitdiff_plain;h=a93929e5b5f5aefe52318f350e1e99baeef73656;p=grpapi.git Bug fix for detection of uncompressed GRP files --- diff --git a/grpapi/grpapi.cpp b/grpapi/grpapi.cpp index 6c96c56..6e6b3ff 100644 --- a/grpapi/grpapi.cpp +++ b/grpapi/grpapi.cpp @@ -233,7 +233,8 @@ BOOL GRPAPI WINAPI DrawGrp(HANDLE hGrp, HDC hdcDest, int nXDest, int nYDest, WOR FrameSize = j; } } - if (FrameSize == 0xFFFFFF) { + if (FrameSize == 0xFFFFFF || FrameSize == GrpFrame->Width * GrpFrame->Height) { + FrameSize = 0xFFFFFF; for (i = 0; i + 1 < GrpFile->nFrames; i++) { j = GrpFrames[i].Offset - GrpFrames[0].Offset; if (j > 0 && j < FrameSize)