From 91b039027f3c6f98c7692790ca7fcdf84a709b7a Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Wed, 28 Aug 2013 12:45:43 -0400 Subject: [PATCH] WinRT: removed a comment regarding a dealt-with TODO --- src/render/direct3d11/SDL_render_d3d11.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp index 1de471a81..44032ddd7 100644 --- a/src/render/direct3d11/SDL_render_d3d11.cpp +++ b/src/render/direct3d11/SDL_render_d3d11.cpp @@ -793,6 +793,9 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer) #if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP // Set the proper orientation for the swap chain, and generate the // 3D matrix transformation for rendering to the rotated swap chain. + // + // To note, his operation is not necessary on Windows Phone, nor is it + // even supported there. It's only needed in Windows 8/RT. DXGI_MODE_ROTATION rotation = DXGI_MODE_ROTATION_UNSPECIFIED; switch (data->orientation) { @@ -816,7 +819,6 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer) throw ref new Platform::FailureException(); } - // TODO, WinRT: Windows Phone does not have the IDXGISwapChain1::SetRotation method. Check if an alternative is available, or needed. result = data->swapChain->SetRotation(rotation); if (FAILED(result)) { WIN_SetErrorFromHRESULT(__FUNCTION__, result);