Fixed Bug 4883, redux - connect SDL_GetDisplayDPI to UIKit_GetDisplayDPI
authorDavid Ludwig
Sat, 28 Mar 2020 15:43:55 -0400
changeset 13679304c6020419a
parent 13678 682e469ffeed
child 13680 6ef67a58efb4
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.
src/video/uikit/SDL_uikitvideo.m
     1.1 --- a/src/video/uikit/SDL_uikitvideo.m	Sun Mar 29 01:54:00 2020 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitvideo.m	Sat Mar 28 15:43:55 2020 -0400
     1.3 @@ -102,6 +102,7 @@
     1.4          device->DestroyWindow = UIKit_DestroyWindow;
     1.5          device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
     1.6          device->GetDisplayUsableBounds = UIKit_GetDisplayUsableBounds;
     1.7 +        device->GetDisplayDPI = UIKit_GetDisplayDPI;
     1.8  
     1.9  #if SDL_IPHONE_KEYBOARD
    1.10          device->HasScreenKeyboardSupport = UIKit_HasScreenKeyboardSupport;