Mercurial > mm7
diff Bink_Smacker.cpp @ 2125:ba3de1337989
house animations working
round renamed to round_to_int
author | zipi |
---|---|
date | Thu, 26 Dec 2013 22:46:49 +0000 |
parents | 4231fdf46dde |
children | aff7a7b072b7 |
line wrap: on
line diff
--- a/Bink_Smacker.cpp Fri Dec 27 01:28:48 2013 +0600 +++ b/Bink_Smacker.cpp Thu Dec 26 22:46:49 2013 +0000 @@ -24,8 +24,8 @@ int (__stdcall *smackw32_SmackBlitClear)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int) = 0; int (__stdcall *smackw32_SmackGoto)(_SMACK *, long) = 0; int (__stdcall *smackw32_SmackBufferOpen)(HWND a1, long a2, long a3, long a4, long a5, long a6) = nullptr; -int (__stdcall *smackw32_SmackBufferNewPalette)(long, long, long) = nullptr; -int (__stdcall *smackw32_SmackColorRemapWithTrans)(long, long, long, long, long) = nullptr; +void(__stdcall *smackw32_SmackBufferNewPalette)(HSMACKBUF, void *, unsigned int) = nullptr; +void(__stdcall *smackw32_SmackColorRemapWithTrans)(_SMACK *, void *, unsigned int, unsigned int, unsigned int) = nullptr; void SMACKW32_DLL_Initialize() { HMODULE pDll = LoadLibraryW(L"SmackW32.dll"); @@ -50,16 +50,17 @@ smackw32_SmackBlitClear = (int (__stdcall *)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int))GetProcAddress(pDll, "_SmackBlitClear@32"); smackw32_SmackGoto = (int (__stdcall *)(_SMACK *, long))GetProcAddress(pDll, "_SmackGoto@8"); smackw32_SmackBufferOpen = (int (__stdcall *)(HWND, long, long, long, long, long))GetProcAddress(pDll, "_SmackBufferOpen@24"); - - LOAD(SmackBufferNewPalette); - LOAD(SmackColorRemapWithTrans); + smackw32_SmackBufferNewPalette = (void(__stdcall *)(HSMACKBUF, void *, unsigned int))GetProcAddress(pDll, "_SmackBufferNewPalette@12"); + smackw32_SmackColorRemapWithTrans = (void(__stdcall *)(_SMACK *, void *, unsigned int, unsigned int, unsigned int))GetProcAddress(pDll, "_SmackColorRemapWithTrans@20"); + //LOAD(SmackBufferNewPalette); + //LOAD(SmackColorRemapWithTrans); } } -int __stdcall SmackColorRemapWithTrans(long a1, long a2, long a3, long a4, long a5) +void __stdcall SmackColorRemapWithTrans(_SMACK *a1, void *a2, unsigned int a3, unsigned int a4, unsigned int a5) { return (smackw32_SmackColorRemapWithTrans)(a1, a2, a3, a4, a5); } @@ -163,9 +164,9 @@ // sub_4D83D0: using guessed type int __stdcall SmackBufferNewPalette(_DWORD, _DWORD, _DWORD); -int __stdcall SmackBufferNewPalette(long a1, long a2, long a3) +void __stdcall SmackBufferNewPalette(HSMACKBUF a1, void *a2, unsigned int a3) { - return (smackw32_SmackBufferNewPalette)(a1, a2, a3); + (smackw32_SmackBufferNewPalette)(a1, a2, a3); }