Hot answers tagged winapi
To my knowledge, the onlything that works is: DwmEnableComposition(DWM_EC_DISABLECOMPOSITION); at the start of your application and: DwmEnableComposition(DWM_EC_ENABLECOMPOSITION); before quitting. For the transitions, proceed as usual. I have tried InvalidateRect(NULL, NULL, true) just after switching to fullscreen to no avail. Hope this helps.
When the main thread signals the rendering thread to terminate, you can use a mutex and condition to wait for the rendering thread to exit before allowing the main thread to proceed. You need to make sure this is the first thing you do on shutdown - before you delete anything related to rendering.
the message loop thread signals the render loop thread to exit. As far as I can tell before the render loop thread can even process the signal it tries SwapBuffers and that fails. And therein lies your problem: your "message loop thread" should be your "render loop thread". They should be the same thread. Attempting to do rendering outside of the main ...
If I understand you correctly, you simply want to hide the mouse when your gesture starts, and then make the mouse appear again on the position it disappeared. Get the mouse position before hiding: POINT posRelative; POINT posAbsolute; GetCursorPos(&posAbsolute); posRelative.x = posAbsolute.x; posRelative.y = posAbsolute.y; ScreenToClient(hwnd, ...
You're indeed not the only one facing this issue. First thing to check: make sure you're using the latest/beta/top-notch drivers for the video card you're using. Now, I'd say that there's only a small chance that you can get this working better than the automatic DXGI implementation. This kind of issue is highly dependent on the adapter vendor, driver ...
I've run into something sort of similar, and the quick answer is that once windows starts processing the quit, you don't have a lot of time. Controls and resources start getting destroyed immediately, and it is entirely possible that by the time your thread gets around to referencing the resource, it's already extinct. I got around this by intercepting the ...
Only top voted, non community-wiki answers of a minimum length are eligible