Hello, currently I'm trying to fix Warcraft 3 Field of view to add support of real widescreen without stretch. I've managed to create DX8 hook that modifies projection matrix and now game's widecreen and playable:
d3d8.rar
But here comes one problem: text is drawing in wrong position according to viewport. And now I wanna hook DrawText function from DX8 extension library to chage draw position, but it seems it's linked statically to the war3.exe. Dunno how to do it, any advices would be great.
Another way is to find that function in executable/library? and patch it, but my asm skill isn't so well for this task and fu**** DMA messes all the stuff.
Added file for testing, just put it in ur wc3 directory.
d3d8.rar
But here comes one problem: text is drawing in wrong position according to viewport. And now I wanna hook DrawText function from DX8 extension library to chage draw position, but it seems it's linked statically to the war3.exe. Dunno how to do it, any advices would be great.
Another way is to find that function in executable/library? and patch it, but my asm skill isn't so well for this task and fu**** DMA messes all the stuff.
Added file for testing, just put it in ur wc3 directory.