/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
static void print_mode(const char *prefix, const SDL_DisplayMode *mode)
/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
static void print_mode(const char *prefix, const SDL_DisplayMode *mode)
{
    if (!mode)
        return;
    SDL_Log("%s: fmt=%s w=%d h=%d refresh=%d\n",
            prefix, SDL_GetPixelFormatName(mode->format),
            mode->w, mode->h, mode->refresh_rate);
}