From 92ece7dcc3f0d8a3be3367f938085a80d03db7a4 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 30 Mar 2022 22:32:48 -0600 Subject: [PATCH] Remove iOS 7 workarounds --- src/SFML/Window/iOS/WindowImplUIKit.mm | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/SFML/Window/iOS/WindowImplUIKit.mm b/src/SFML/Window/iOS/WindowImplUIKit.mm index d8cdb393d..e518fd4a3 100644 --- a/src/SFML/Window/iOS/WindowImplUIKit.mm +++ b/src/SFML/Window/iOS/WindowImplUIKit.mm @@ -78,11 +78,6 @@ WindowImplUIKit::WindowImplUIKit(VideoMode mode, [SFAppDelegate getInstance].sfWindow = this; CGRect viewRect = frame; - // if UI-orientation doesn't match window-layout, swap the view size and notify the window about it - // iOS 7 and 8 do different stuff here. In iOS 7 frame.x mode.height) != (frame.size.width > frame.size.height)) - std::swap(viewRect.size.width, viewRect.size.height); // Create the view m_view = [[SFView alloc] initWithFrame:viewRect andContentScaleFactor:(static_cast(m_backingScale))]; @@ -156,10 +151,6 @@ void WindowImplUIKit::setPosition(const Vector2i& /* position */) Vector2u WindowImplUIKit::getSize() const { CGRect physicalFrame = m_window.frame; - // iOS 7 and 8 do different stuff here. In iOS 7 frame.x(physicalFrame.size.width * static_cast(m_backingScale)), static_cast(physicalFrame.size.height * static_cast(m_backingScale))); }