Mac and Linux SDL2 binary snapshots
Edward Rudd
2021-06-15 dec7875a6e23212021e4d9080330a42832dfe02a
source/src/video/winrt/SDL_winrtvideo.cpp
@@ -67,7 +67,6 @@
#include "SDL_winrtmouse_c.h"
#include "SDL_main.h"
#include "SDL_system.h"
//#include "SDL_log.h"
/* Initialization/Query functions */
@@ -95,12 +94,6 @@
/* WinRT driver bootstrap functions */
static int
WINRT_Available(void)
{
    return (1);
}
static void
WINRT_DeleteDevice(SDL_VideoDevice * device)
@@ -175,7 +168,7 @@
#define WINRTVID_DRIVER_NAME "winrt"
VideoBootStrap WINRT_bootstrap = {
    WINRTVID_DRIVER_NAME, "SDL WinRT video driver",
    WINRT_Available, WINRT_CreateDevice
    WINRT_CreateDevice
};
int
@@ -300,7 +293,7 @@
        }
    }
    if (SDL_AddVideoDisplay(&display) < 0) {
    if (SDL_AddVideoDisplay(&display, SDL_FALSE) < 0) {
        goto done;
    }
@@ -383,7 +376,7 @@
                display.desktop_mode = mode;
                display.current_mode = mode;
                if ((SDL_AddDisplayMode(&display, &mode) < 0) ||
                    (SDL_AddVideoDisplay(&display) < 0))
                    (SDL_AddVideoDisplay(&display, SDL_FALSE) < 0))
                {
                    return SDL_SetError("Failed to apply DXGI Display-detection workaround");
                }