Added events for dynamically connecting and disconnecting displays, with an iOS implementation

This commit is contained in:
Sam Lantinga
2020-10-08 16:42:20 -07:00
parent cd703b5628
commit 76980e30f2
20 changed files with 91 additions and 25 deletions

View File

@@ -171,7 +171,7 @@ WIN_AddDisplay(_THIS, HMONITOR hMonitor, const MONITORINFOEX *info)
display.desktop_mode = mode;
display.current_mode = mode;
display.driverdata = displaydata;
SDL_AddVideoDisplay(&display);
SDL_AddVideoDisplay(&display, SDL_FALSE);
SDL_free(display.name);
return SDL_TRUE;
}