bolrog / d2dx

D2DX is a complete solution to make Diablo II run well on modern PCs, with high fps and better resolutions.
GNU General Public License v3.0
426 stars 48 forks source link

[1.13c] Function D2WIN_DrawText #167

Open thaison1995 opened 2 years ago

thaison1995 commented 2 years ago

Looks like you got the wrong address DrawText on version 1.13c.

D2FUNC(D2WIN, DrawText, void, __fastcall, (const wchar_t * wStr, int X, int Y, int nColor, int Centered), 0x12FA0)//D2Win.#10150
D2FUNC(D2WIN, DrawTextEx, void, __fastcall, (const wchar_t * wStr, int X, int Y, int nColor, int Centered, int TransLvl), 0x12F60)//D2Win.#10096
case D2Function::D2Win_DrawText:
            hModule = _hD2WinDll;
            ordinal = 10096;
            break;

to

case D2Function::D2Win_DrawText:
            hModule = _hD2WinDll;
            ordinal = 10150;
            break;