veeenu / hudhook

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

prevent crash when d3d9 render in background #192

Closed Alex141642 closed 1 month ago

Alex141642 commented 5 months 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