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 68850d331f
commit fae3b65f05

View File

@ -214,8 +214,8 @@ namespace
// Send a Resized event to the current window // Send a Resized event to the current window
sf::Event event; sf::Event event;
event.type = sf::Event::Resized; event.type = sf::Event::Resized;
event.size.width = size.x * backingScaleFactor; event.size.width = size.x;
event.size.height = size.y * backingScaleFactor; event.size.height = size.y;
sfWindow->forwardEvent(event); sfWindow->forwardEvent(event);
} }
} }