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 [Fri, 6 Oct 2006 08:04:27 +0000 (08:04 +0000)]
grpapi/grpapi.cpp
grpapi/grpapi.vcproj

index 6712ead..0ce1b29 100644 (file)
@@ -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
index 3b7bb5e..72b773a 100644 (file)
@@ -4,6 +4,7 @@
        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
@@ -31,6 +32,8 @@
                        />\r
                        <Tool\r
                                Name="VCCustomBuildTool"\r
+                               CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)..\drawgrp\debug\&quot;"\r
+                               Outputs="$(TargetDir)null.txt"\r
                        />\r
                        <Tool\r
                                Name="VCXMLDataGeneratorTool"\r
                        />\r
                        <Tool\r
                                Name="VCCustomBuildTool"\r
+                               CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)..\drawgrp\release\&quot;"\r
+                               Outputs="$(TargetDir)null.txt"\r
                        />\r
                        <Tool\r
                                Name="VCXMLDataGeneratorTool"\r