Fixed line endings
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Mar 2014 14:35:37 -0700
changeset 8597 1479abb49773
parent 8596 88fee9ded656
child 8598 2e6b94600850
Fixed line endings
src/render/direct3d11/SDL_render_d3d11.c
--- a/src/render/direct3d11/SDL_render_d3d11.c	Mon Mar 10 12:49:15 2014 -0700
+++ b/src/render/direct3d11/SDL_render_d3d11.c	Mon Mar 10 14:35:37 2014 -0700
@@ -1057,7 +1057,7 @@
 /* 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 @@
 #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 @@
         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;