riquems / tak-enhanced

9 stars 0 forks source link

Fix double hook / stack overflow crash #45

Closed FunkyFr3sh closed 10 months ago

FunkyFr3sh commented 1 year ago

Adds support for other ddraw wrappers such as cnc-ddraw

riquems commented 1 year ago

Hey @FunkyFr3sh, that's so sweet of you! Thanks a lot!

I'll test it to see if it fixes some crashes I was experiencing. Is this a fix you tested yourself? If so, can you tell me how to reproduce it? I'll try to, anyway, but if you could elaborate your experience.

I remember I had to keep rebinding the WndProc because DXWnd takes the control of it everytime you change your resolution or minimizes and reopen the game, then it broke my keys events (like spacebar/click/db_click). But this binding crashed when using cnc-ddraw. Since I use DXWnd then I left as it is... Welp, thanks anyway! Hope you could understand my mess of code. :D