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/grpapi/grpapi.cpp b/grpapi/grpapi.cpp
--- a/grpapi/grpapi.cpp
+++ b/grpapi/grpapi.cpp
@@ -491,10 +491,16 @@ HANDLE GRPAPI WINAPI CreateGrp(signed short *lpImageData, WORD nFrames, WORD wMa
}\r
}\r
}\r
+ x2 = x2 - x1 + 1;\r
+ y2 = y2 - y1 + 1;\r
+ if ((WORD)x1 > 255) x1 = 255;\r
+ if ((WORD)y1 > 255) y1 = 255;\r
+ if ((WORD)x2 > 255) x2 = 255;\r
+ if ((WORD)y2 > 255) y2 = 255;\r
lpFrameHeaders[i].Left = x1;\r
lpFrameHeaders[i].Top = y1;\r
- lpFrameHeaders[i].Width = x2 - x1 + 1;\r
- lpFrameHeaders[i].Height = y2 - y1 + 1;\r
+ lpFrameHeaders[i].Width = x2;\r
+ lpFrameHeaders[i].Height = y2;\r
\r
if (!bNoCompress) {\r
EncodeFrameData(lpImageData, i, &GrpHeader, &lpFrameHeaders[i], &lpFrameData[i]);\r
diff --git a/grpapi/grpapi.vcproj b/grpapi/grpapi.vcproj
--- a/grpapi/grpapi.vcproj
+++ b/grpapi/grpapi.vcproj
Version="8.00"\r
Name="grpapi"\r
ProjectGUID="{08812E9C-7F03-4DCB-8828-F3BDB0728EC7}"\r
+ RootNamespace="grpapi"\r
SccProjectName=""$/grpapi_VS2005.root/grpapi", IGAAAAAA"\r
SccLocalPath=".."\r
SccProvider="MSSCCI:Microsoft Visual SourceSafe"\r
/>\r
<Tool\r
Name="VCCustomBuildTool"\r
+ CommandLine="copy "$(TargetPath)" "$(SolutionDir)..\drawgrp\debug\""\r
+ Outputs="$(TargetDir)null.txt"\r
/>\r
<Tool\r
Name="VCXMLDataGeneratorTool"\r
/>\r
<Tool\r
Name="VCCustomBuildTool"\r
+ CommandLine="copy "$(TargetPath)" "$(SolutionDir)..\drawgrp\release\""\r
+ Outputs="$(TargetDir)null.txt"\r
/>\r
<Tool\r
Name="VCXMLDataGeneratorTool"\r
|