Added SDL_Direct3D9GetAdapterIndex(), which returns the adapter index you would pass into CreateDevice to get your device on the right monitor in full screen mode. This fixes the default adapter in SDL_render_d3d.c, which means that tests will work fullscreen off the main monitor now.
CR: Sam
This commit is contained in:
parent
8f58be5fbe
commit
0d7001777d
4 changed files with 96 additions and 18 deletions
|
@ -371,6 +371,7 @@ extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
|
|||
extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
|
||||
extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode);
|
||||
extern SDL_VideoDisplay *SDL_GetDisplayForWindow(SDL_Window *window);
|
||||
extern void *SDL_GetDisplayDriverData( int displayIndex );
|
||||
|
||||
extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
|
||||
|
||||
|
|
|
@ -615,6 +615,14 @@ SDL_GetIndexOfDisplay(SDL_VideoDisplay *display)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void *
|
||||
SDL_GetDisplayDriverData( int displayIndex )
|
||||
{
|
||||
CHECK_DISPLAY_INDEX( displayIndex, NULL );
|
||||
|
||||
return _this->displays[displayIndex].driverdata;
|
||||
}
|
||||
|
||||
const char *
|
||||
SDL_GetDisplayName(int displayIndex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue