Mac and Linux SDL2 binary snapshots
Edward Rudd
2021-06-15 dec7875a6e23212021e4d9080330a42832dfe02a
source/src/video/uikit/SDL_uikitvideo.m
@@ -52,12 +52,6 @@
/* DUMMY driver bootstrap functions */
static int
UIKit_Available(void)
{
    return 1;
}
static void UIKit_DeleteDevice(SDL_VideoDevice * device)
{
    @autoreleasepool {
@@ -102,6 +96,7 @@
        device->DestroyWindow = UIKit_DestroyWindow;
        device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
        device->GetDisplayUsableBounds = UIKit_GetDisplayUsableBounds;
        device->GetDisplayDPI = UIKit_GetDisplayDPI;
#if SDL_IPHONE_KEYBOARD
        device->HasScreenKeyboardSupport = UIKit_HasScreenKeyboardSupport;
@@ -139,6 +134,8 @@
#if SDL_VIDEO_METAL
        device->Metal_CreateView = UIKit_Metal_CreateView;
        device->Metal_DestroyView = UIKit_Metal_DestroyView;
        device->Metal_GetLayer = UIKit_Metal_GetLayer;
        device->Metal_GetDrawableSize = UIKit_Metal_GetDrawableSize;
#endif
        device->gl_config.accelerated = 1;
@@ -149,7 +146,7 @@
VideoBootStrap UIKIT_bootstrap = {
    UIKITVID_DRIVER_NAME, "SDL UIKit video driver",
    UIKit_Available, UIKit_CreateDevice
    UIKit_CreateDevice
};
@@ -161,12 +158,19 @@
    if (UIKit_InitModes(_this) < 0) {
        return -1;
    }
   SDL_InitGCKeyboard();
   SDL_InitGCMouse();
    return 0;
}
void
UIKit_VideoQuit(_THIS)
{
   SDL_QuitGCKeyboard();
   SDL_QuitGCMouse();
    UIKit_QuitModes(_this);
}