diff --git a/src/SFML/Window/iOS/WindowImplUIKit.mm b/src/SFML/Window/iOS/WindowImplUIKit.mm index d8cdb393..e518fd4a 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))); }