Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Immediately minimize the goofy window in testaudiohotplug.
  • Loading branch information
icculus committed Mar 20, 2015
1 parent 537b68b commit e9a7a81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testaudiohotplug.c
Expand Up @@ -131,7 +131,8 @@ main(int argc, char *argv[])
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) {
SDL_strlcpy(filename, argv[1], sizeof(filename));
Expand Down

0 comments on commit e9a7a81

Please sign in to comment.