Fixes bug #1049: iOS orientation change handling re-scales window size by backingScaleFactor.

This commit is contained in:
louis-langholtz 2016-01-26 14:11:52 -07:00 committed by Lukas Dürrenberger
parent 1424fa4dc3
commit eacdafe9d7

View File

@ -214,8 +214,8 @@ namespace
// 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);
}
}