Update for bug 4883 - Add approximation for display DPI on iOS
authorSam Lantinga <slouken@libsdl.org>
Mon, 16 Dec 2019 10:26:36 -0800
changeset 133497324ce6b653b
parent 13348 448528dc13da
child 13350 a9ce6aa098b6
Update for bug 4883 - Add approximation for display DPI on iOS

Aaron Barany

I realized I made a minor mistake in my patch: I changed the constructor prototype for SDL_DisplayData, but didn't update the declaration in the .h file. The compiler and linker don't complain, but it would probably be best to fix in case a later change runs into a problem from the mismatch. I have attached a patch to fix this.
src/video/uikit/SDL_uikitmodes.h
     1.1 --- a/src/video/uikit/SDL_uikitmodes.h	Mon Dec 16 10:20:03 2019 -0800
     1.2 +++ b/src/video/uikit/SDL_uikitmodes.h	Mon Dec 16 10:26:36 2019 -0800
     1.3 @@ -27,7 +27,7 @@
     1.4  
     1.5  @interface SDL_DisplayData : NSObject
     1.6  
     1.7 -- (instancetype)init;
     1.8 +- (instancetype)initWithScreen:(UIScreen*)screen;
     1.9  
    1.10  @property (nonatomic, strong) UIScreen *uiscreen;
    1.11  @property (nonatomic) float screenDPI;