From 7e8b25534d2859f6d1267a13c8e54a3678dc7ec8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 10 Mar 2014 14:35:37 -0700 Subject: [PATCH] Fixed line endings --- src/render/direct3d11/SDL_render_d3d11.c | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.c b/src/render/direct3d11/SDL_render_d3d11.c index 6871f196b..c583403af 100644 --- a/src/render/direct3d11/SDL_render_d3d11.c +++ b/src/render/direct3d11/SDL_render_d3d11.c @@ -1057,7 +1057,7 @@ D3D11_CreateBlendMode(SDL_Renderer * renderer, /* Create resources that depend on the device. */ static HRESULT D3D11_CreateDeviceResources(SDL_Renderer * renderer) -{ +{ typedef HRESULT(WINAPI *PFN_CREATE_DXGI_FACTORY)(REFIID riid, void **ppFactory); PFN_CREATE_DXGI_FACTORY CreateDXGIFactoryFunc; D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata; @@ -1071,14 +1071,14 @@ D3D11_CreateDeviceResources(SDL_Renderer * renderer) #ifdef __WINRT__ CreateDXGIFactoryFunc = CreateDXGIFactory; D3D11CreateDeviceFunc = D3D11CreateDevice; -#else - data->hDXGIMod = SDL_LoadObject("dxgi.dll"); +#else + data->hDXGIMod = SDL_LoadObject("dxgi.dll"); if (!data->hDXGIMod) { result = E_FAIL; goto done; - } - - CreateDXGIFactoryFunc = (PFN_CREATE_DXGI_FACTORY)SDL_LoadFunction(data->hDXGIMod, "CreateDXGIFactory"); + } + + CreateDXGIFactoryFunc = (PFN_CREATE_DXGI_FACTORY)SDL_LoadFunction(data->hDXGIMod, "CreateDXGIFactory"); if (!CreateDXGIFactoryFunc) { result = E_FAIL; goto done; @@ -1095,16 +1095,16 @@ D3D11_CreateDeviceResources(SDL_Renderer * renderer) result = E_FAIL; goto done; } -#endif /* __WINRT__ */ - - result = CreateDXGIFactoryFunc(&IID_IDXGIFactory2, &data->dxgiFactory); +#endif /* __WINRT__ */ + + result = CreateDXGIFactoryFunc(&IID_IDXGIFactory2, &data->dxgiFactory); if (FAILED(result)) { WIN_SetErrorFromHRESULT(__FUNCTION__ ", CreateDXGIFactory", result); goto done; - } - - /* FIXME: Should we use the default adapter? */ - result = IDXGIFactory2_EnumAdapters(data->dxgiFactory, 0, &data->dxgiAdapter); + } + + /* FIXME: Should we use the default adapter? */ + result = IDXGIFactory2_EnumAdapters(data->dxgiFactory, 0, &data->dxgiAdapter); if (FAILED(result)) { WIN_SetErrorFromHRESULT(__FUNCTION__ ", D3D11CreateDevice", result); goto done;