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 776509937804892a
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
     1.1 --- a/include/SDL_system.h	Sat Sep 28 14:07:08 2013 -0700
     1.2 +++ b/include/SDL_system.h	Sat Sep 28 14:07:14 2013 -0700
     1.3 @@ -51,7 +51,7 @@
     1.4  
     1.5  /* Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer. */
     1.6  typedef struct IDirect3DDevice9 IDirect3DDevice9;
     1.7 -extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3DDevice(SDL_Renderer * renderer);
     1.8 +extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3D9Device(SDL_Renderer * renderer);
     1.9  
    1.10  #endif /* __WIN32__ */
    1.11  
     2.1 --- a/src/render/direct3d/SDL_render_d3d.c	Sat Sep 28 14:07:08 2013 -0700
     2.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Sat Sep 28 14:07:14 2013 -0700
     2.3 @@ -1884,7 +1884,7 @@
     2.4  }
     2.5  
     2.6  IDirect3DDevice9 *
     2.7 -SDL_RenderGetD3DDevice(SDL_Renderer * renderer)
     2.8 +SDL_RenderGetD3D9Device(SDL_Renderer * renderer)
     2.9  {
    2.10  	D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
    2.11