From bc430d405c11d675db89bc42b5b078e09bd7caed Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 16 Dec 2019 10:26:36 -0800 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitmodes.h b/src/video/uikit/SDL_uikitmodes.h index cab81854b5ea6..31054755bc031 100644 --- a/src/video/uikit/SDL_uikitmodes.h +++ b/src/video/uikit/SDL_uikitmodes.h @@ -27,7 +27,7 @@ @interface SDL_DisplayData : NSObject -- (instancetype)init; +- (instancetype)initWithScreen:(UIScreen*)screen; @property (nonatomic, strong) UIScreen *uiscreen; @property (nonatomic) float screenDPI;