[Commits] SDL: Fixed building on tvOS

libsdl.org revision control commits-owner at libsdl.org
Mon Sep 10 23:01:42 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/364f514f94d8
changeset: 12183:364f514f94d8
user:      Sam Lantinga <slouken at libsdl.org>
date:      Mon Sep 10 23:00:09 2018 -0700
description:
Fixed building on tvOS

diffstat:

 src/video/uikit/SDL_uikitmodes.m |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r c0d45b4dcfc9 -r 364f514f94d8 src/video/uikit/SDL_uikitmodes.m
--- a/src/video/uikit/SDL_uikitmodes.m	Mon Sep 10 22:59:49 2018 -0700
+++ b/src/video/uikit/SDL_uikitmodes.m	Mon Sep 10 23:00:09 2018 -0700
@@ -324,6 +324,7 @@
     }
 }
 
+#if !TARGET_OS_TV
 void SDL_OnApplicationDidChangeStatusBarOrientation()
 {
     BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
@@ -372,6 +373,7 @@
         SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
     }
 }
+#endif /* !TARGET_OS_TV */
 
 #endif /* SDL_VIDEO_DRIVER_UIKIT */
 


More information about the commits mailing list