From: ShadowFlare Date: Tue, 28 Nov 2006 01:17:30 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=commitdiff_plain;h=a215f7bed5ba1784c1efd0f24db33e64f7d52360;p=grpapi.git --- diff --git a/grpapi/grpapi_no-lib.cpp b/grpapi/grpapi_no-lib.cpp index 0b056ce..9a63fa8 100644 --- a/grpapi/grpapi_no-lib.cpp +++ b/grpapi/grpapi_no-lib.cpp @@ -12,6 +12,7 @@ funcLoadGrp LoadGrp = 0; funcDestroyGrp DestroyGrp = 0; funcDrawGrp DrawGrp = 0; funcGetGrpInfo GetGrpInfo = 0; +funcGetGrpFrameInfo GetGrpFrameInfo = 0; funcCreateGrp CreateGrp = 0; funcSetFunctionGetPixel SetFunctionGetPixel = 0; funcSetFunctionSetPixel SetFunctionSetPixel = 0; @@ -30,6 +31,7 @@ GRPAPIMODULE::GRPAPIMODULE() DestroyGrp = (funcDestroyGrp)GetProcAddress(hGrpApi,"DestroyGrp"); DrawGrp = (funcDrawGrp)GetProcAddress(hGrpApi,"DrawGrp"); GetGrpInfo = (funcGetGrpInfo)GetProcAddress(hGrpApi,"GetGrpInfo"); + GetGrpFrameInfo = (funcGetGrpFrameInfo)GetProcAddress(hGrpApi,"GetGrpFrameInfo"); CreateGrp = (funcCreateGrp)GetProcAddress(hGrpApi,"CreateGrp"); SetFunctionGetPixel = (funcSetFunctionGetPixel)GetProcAddress(hGrpApi,"SetFunctionGetPixel"); SetFunctionSetPixel = (funcSetFunctionSetPixel)GetProcAddress(hGrpApi,"SetFunctionSetPixel"); @@ -46,6 +48,7 @@ GRPAPIMODULE::~GRPAPIMODULE() DestroyGrp = 0; DrawGrp = 0; GetGrpInfo = 0; + GetGrpFrameInfo = 0; CreateGrp = 0; SetFunctionGetPixel = 0; SetFunctionSetPixel = 0; diff --git a/grpapi/grpapi_no-lib.h b/grpapi/grpapi_no-lib.h index a31b369..9dc9baa 100644 --- a/grpapi/grpapi_no-lib.h +++ b/grpapi/grpapi_no-lib.h @@ -60,11 +60,13 @@ typedef HANDLE (WINAPI* funcLoadGrp)(LPCSTR lpFileName); typedef BOOL (WINAPI* funcDestroyGrp)(HANDLE hGrp); typedef BOOL (WINAPI* funcDrawGrp)(HANDLE hGrp, HDC hdcDest, int nXDest, int nYDest, WORD nFrame, DWORD *dwPalette, DWORD dwFlags, DWORD dwAlpha); typedef BOOL (WINAPI* funcGetGrpInfo)(HANDLE hGrp, GRPHEADER *GrpInfo); +typedef BOOL (WINAPI* funcGetGrpFrameInfo)(HANDLE hGrp, WORD nFrame, DWORD *nLeft, DWORD *nTop, DWORD *nWidth, DWORD *nHeight); extern funcLoadPalette LoadPalette; extern funcLoadGrp LoadGrp; extern funcDestroyGrp DestroyGrp; extern funcDrawGrp DrawGrp; extern funcGetGrpInfo GetGrpInfo; +extern funcGetGrpFrameInfo GetGrpFrameInfo; // A pointer to the raw image data to encode should be passed to lpImageData. The size of // the buffer containing the data should be nFrames * wMaxWidth * wMaxHeight * sizeof(short)