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
return TRUE;\r
}\r
\r
+BOOL GRPAPI WINAPI GetGrpFrameInfo(HANDLE hGrp, WORD nFrame, DWORD *nLeft, DWORD *nTop, DWORD *nWidth, DWORD *nHeight)\r
+{\r
+ if (!hGrp || hGrp==INVALID_HANDLE_VALUE) return FALSE;\r
+ FRAMEHEADER *GrpFrame = &((FRAMEHEADER *)(((char *)hGrp)+6))[nFrame];\r
+\r
+ if (nLeft) *nLeft = GrpFrame->Left;\r
+ if (nTop) *nTop = GrpFrame->Top;\r
+ if (nWidth) *nWidth = GrpFrame->Width;\r
+ if (nHeight) *nHeight = GrpFrame->Height;\r
+\r
+ return TRUE;\r
+}\r
+\r
void GRPAPI WINAPI SetFunctionGetPixel(GETPIXELPROC lpGetPixelProc)\r
{\r
if (!lpGetPixelProc)\r
diff --git a/grpapi/grpapi.def b/grpapi/grpapi.def
--- a/grpapi/grpapi.def
+++ b/grpapi/grpapi.def
SetFunctionSetPixel @9\r
SetMpqDll @10\r
CreateGrp @11\r
+ GetGrpFrameInfo @12\r
diff --git a/grpapi/grpapi.h b/grpapi/grpapi.h
--- a/grpapi/grpapi.h
+++ b/grpapi/grpapi.h
BOOL GRPAPI WINAPI DestroyGrp(HANDLE hGrp);\r
BOOL GRPAPI WINAPI DrawGrp(HANDLE hGrp, HDC hdcDest, int nXDest, int nYDest, WORD nFrame, DWORD *dwPalette, DWORD dwFlags, DWORD dwAlpha);\r
BOOL GRPAPI WINAPI GetGrpInfo(HANDLE hGrp, GRPHEADER *GrpInfo);\r
+BOOL GRPAPI WINAPI GetGrpFrameInfo(HANDLE hGrp, WORD nFrame, DWORD *nLeft, DWORD *nTop, DWORD *nWidth, DWORD *nHeight);\r
\r
// A pointer to the raw image data to encode should be passed to lpImageData. The size of\r
// the buffer containing the data should be nFrames * wMaxWidth * wMaxHeight * sizeof(short)\r
diff --git a/grpapi/grpapi.rc b/grpapi/grpapi.rc
--- a/grpapi/grpapi.rc
+++ b/grpapi/grpapi.rc
//\r
\r
VS_VERSION_INFO VERSIONINFO\r
- FILEVERSION 1,1,1,2\r
- PRODUCTVERSION 1,1,1,2\r
+ FILEVERSION 1,1,1,3\r
+ PRODUCTVERSION 1,1,1,3\r
FILEFLAGSMASK 0x3fL\r
#ifdef _DEBUG\r
FILEFLAGS 0x1L\r
VALUE "LegalCopyright", "Copyright © ShadowFlare Software 2002-2006"\r
VALUE "OriginalFilename", "grpapi.dll"\r
VALUE "ProductName", "GRP Library"\r
- VALUE "ProductVersion", "1, 1, 1, 2"\r
+ VALUE "ProductVersion", "1, 1, 1, 3"\r
VALUE "Web Address", "http://shadowflare.samods.org/"\r
END\r
END\r
|