diff options
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
| -rw-r--r-- | runtime/shims/dxgi_com.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp index b0301df74..df4d48ba2 100644 --- a/runtime/shims/dxgi_com.cpp +++ b/runtime/shims/dxgi_com.cpp | |||
| @@ -290,9 +290,13 @@ public: | |||
| 290 | *color = background_color_; | 290 | *color = background_color_; |
| 291 | return S_OK; | 291 | return S_OK; |
| 292 | } | 292 | } |
| 293 | HRESULT STDMETHODCALLTYPE SetRotation(DXGI_MODE_ROTATION) override { return S_OK; } | 293 | HRESULT STDMETHODCALLTYPE SetRotation(DXGI_MODE_ROTATION rotation) override { |
| 294 | HRESULT STDMETHODCALLTYPE GetRotation(DXGI_MODE_ROTATION* r) override { | 294 | rotation_ = rotation; |
| 295 | if (r) *r = DXGI_MODE_ROTATION_IDENTITY; | 295 | return S_OK; |
| 296 | } | ||
| 297 | HRESULT STDMETHODCALLTYPE GetRotation(DXGI_MODE_ROTATION* rotation) override { | ||
| 298 | if (!rotation) return E_INVALIDARG; | ||
| 299 | *rotation = rotation_; | ||
| 296 | return S_OK; | 300 | return S_OK; |
| 297 | } | 301 | } |
| 298 | 302 | ||
| @@ -400,6 +404,7 @@ private: | |||
| 400 | std::atomic<UINT> max_frame_latency_{2}; | 404 | std::atomic<UINT> max_frame_latency_{2}; |
| 401 | DXGI_RGBA background_color_{0, 0, 0, 0}; | 405 | DXGI_RGBA background_color_{0, 0, 0, 0}; |
| 402 | DXGI_MATRIX_3X2_F matrix_transform_{1, 0, 0, 1, 0, 0}; | 406 | DXGI_MATRIX_3X2_F matrix_transform_{1, 0, 0, 1, 0, 0}; |
| 407 | DXGI_MODE_ROTATION rotation_ = DXGI_MODE_ROTATION_IDENTITY; | ||
| 403 | }; | 408 | }; |
| 404 | 409 | ||
| 405 | struct ReservationState { | 410 | struct ReservationState { |