# HG changeset patch # User David Ludwig # Date 1585424635 14400 # Sat Mar 28 15:43:55 2020 -0400 # Node ID 2dd86e3e0edb9bc134fea26c60e7e3c528a0f088 # Parent 498a7f27758ebd7c41c77099d32afe54b30337fe Fixed Bug 4883, redux - connect SDL_GetDisplayDPI to UIKit_GetDisplayDPI SDL_GetDisplayDPI was failing on iOS, as UIKit_GetDisplayDPI was not getting assigned to SDL's internal field in SDL_VideoDevice: GetDisplayDPI. diff -r 498a7f27758e -r 2dd86e3e0edb src/video/uikit/SDL_uikitvideo.m --- a/src/video/uikit/SDL_uikitvideo.m Thu Mar 26 22:14:59 2020 -0400 +++ b/src/video/uikit/SDL_uikitvideo.m Sat Mar 28 15:43:55 2020 -0400 @@ -102,6 +102,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;