veeenu / hudhook

A videogame overlay framework written in Rust, supporting DirectX and OpenGL
MIT License
167 stars 27 forks source link

prevent crash when d3d9 render in background #192

Open Alex141642 opened 1 month ago

Alex141642 commented 1 month ago

I opened the issue #191 because pressing keys ctrl+alt+supr or alt+tab made my D3D9 imgui menu to disapear.

After looking at this topic: 256699-alt-tab-support-directx.html, i noticed that the WM_ACTIVATEAPP was not handled. I made a little POC that call the Reset method on the device. My menu is still present after that, even if there is rendering errors in the console.

This PR should not be merged directly