Skip to content

Commit

Permalink
Fixes bug SFML#1049: iOS orientation change handling re-scales window…
Browse files Browse the repository at this point in the history
… size by backingScaleFactor.
  • Loading branch information
louis-langholtz authored and iamPHEN committed Mar 11, 2017
1 parent df59dea commit f8ef6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SFML/Window/iOS/SFAppDelegate.mm
Expand Up @@ -214,8 +214,8 @@ - (void)deviceOrientationDidChange:(NSNotification *)notification
// Send a Resized event to the current window
sf::Event event;
event.type = sf::Event::Resized;
event.size.width = size.x * backingScaleFactor;
event.size.height = size.y * backingScaleFactor;
event.size.width = size.x;
event.size.height = size.y;
sfWindow->forwardEvent(event);
}
}
Expand Down

0 comments on commit f8ef6d9

Please sign in to comment.