Moved D3D_LoadDLL and SDL_Direct3D9GetAdapterIndex to SDL_windowswindow.c at Jorgen's insistence. That file is wrapped in a more appropriate define check so it will work if somebody builds a binary without D3D support.
Added a reference to SDL_Direct3D9GetAdapterIndex to SDL_test_common.c so SDL will fail to compile if the new symbol isn't included properly. CR: Jorgen
This commit is contained in:
parent
a7429dfa22
commit
a759ac24a1
4 changed files with 92 additions and 69 deletions
|
@ -36,6 +36,8 @@ typedef struct
|
|||
struct SDL_VideoData *videodata;
|
||||
} SDL_WindowData;
|
||||
|
||||
typedef struct IDirect3D9 IDirect3D9;
|
||||
|
||||
extern int WIN_CreateWindow(_THIS, SDL_Window * window);
|
||||
extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
|
||||
extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
|
||||
|
@ -57,6 +59,7 @@ extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
|
|||
extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
|
||||
struct SDL_SysWMinfo *info);
|
||||
extern void WIN_OnWindowEnter(_THIS, SDL_Window * window);
|
||||
extern SDL_bool D3D_LoadDLL( void **pD3DDLL, IDirect3D9 **pDirect3D9Interface );
|
||||
|
||||
#endif /* _SDL_windowswindow_h */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue