Make it clear we're just returning a D3D9 device, allowing for new functions to get other D3D versions
authorSam Lantinga <slouken@libsdl.org>
Sat, 28 Sep 2013 14:07:14 -0700
changeset 7765 09937804892a
parent 7764 0f48b5f28668
child 7766 84b154b1ed71
Make it clear we're just returning a D3D9 device, allowing for new functions to get other D3D versions
include/SDL_system.h
src/render/direct3d/SDL_render_d3d.c
--- a/include/SDL_system.h	Sat Sep 28 14:07:08 2013 -0700
+++ b/include/SDL_system.h	Sat Sep 28 14:07:14 2013 -0700
@@ -51,7 +51,7 @@
 
 /* Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer. */
 typedef struct IDirect3DDevice9 IDirect3DDevice9;
-extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3DDevice(SDL_Renderer * renderer);
+extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3D9Device(SDL_Renderer * renderer);
 
 #endif /* __WIN32__ */
 
--- a/src/render/direct3d/SDL_render_d3d.c	Sat Sep 28 14:07:08 2013 -0700
+++ b/src/render/direct3d/SDL_render_d3d.c	Sat Sep 28 14:07:14 2013 -0700
@@ -1884,7 +1884,7 @@
 }
 
 IDirect3DDevice9 *
-SDL_RenderGetD3DDevice(SDL_Renderer * renderer)
+SDL_RenderGetD3D9Device(SDL_Renderer * renderer)
 {
 	D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;