upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/dxgi_com.cpp
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:12:19 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:12:19 -0500
commit9a507b063de9167e9c63756c932acef8070f4e1b (patch)
tree6c9a3657989799afe7db4f9863ea6a0ee202dcc4 /runtime/shims/dxgi_com.cpp
parentc495d3495e3a8b1f3f993737bd7b1ab89748e5f4 (diff)
parent32fc04a14ef7b67af919ef3e17c00efa873b47d4 (diff)
Merge pull request #2822 from bobcatchris
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
-rw-r--r--runtime/shims/dxgi_com.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp
index b523fe6f0..2f671d78e 100644
--- a/runtime/shims/dxgi_com.cpp
+++ b/runtime/shims/dxgi_com.cpp
@@ -795,7 +795,13 @@ public:
795 *out = static_cast<IDXGIAdapter*>(adapter); 795 *out = static_cast<IDXGIAdapter*>(adapter);
796 return S_OK; 796 return S_OK;
797 } 797 }
798 HRESULT STDMETHODCALLTYPE MakeWindowAssociation(HWND hwnd, UINT) override { assoc_hwnd_ = hwnd; return S_OK; } 798 HRESULT STDMETHODCALLTYPE MakeWindowAssociation(HWND hwnd, UINT flags) override {
799 // Host-measured: only the three documented bits are accepted; any other bit is DXGI_ERROR_INVALID_CALL.
800 constexpr UINT known = DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_ALT_ENTER | DXGI_MWA_NO_PRINT_SCREEN;
801 if (flags & ~known) return DXGI_ERROR_INVALID_CALL;
802 assoc_hwnd_ = hwnd;
803 return S_OK;
804 }
799 HRESULT STDMETHODCALLTYPE GetWindowAssociation(HWND* hwnd) override { 805 HRESULT STDMETHODCALLTYPE GetWindowAssociation(HWND* hwnd) override {
800 if (!hwnd) return E_INVALIDARG; 806 if (!hwnd) return E_INVALIDARG;
801 *hwnd = assoc_hwnd_; 807 *hwnd = assoc_hwnd_;