Immediately minimize the goofy window in testaudiohotplug.

This commit is contained in:
Ryan C. Gordon 2015-03-19 22:20:12 -04:00
parent 537b68b9f0
commit e9a7a81f28
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ main(int argc, char *argv[])
return (1); return (1);
} }
SDL_CreateWindow("testaudiohotplug", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, 0); /* Some targets (Mac CoreAudio) need an event queue for audio hotplug, so make and immediately hide a window. */
SDL_MinimizeWindow(SDL_CreateWindow("testaudiohotplug", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, 0));
if (argc > 1) { if (argc > 1) {
SDL_strlcpy(filename, argv[1], sizeof(filename)); SDL_strlcpy(filename, argv[1], sizeof(filename));