mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixes bug #1049: iOS orientation change handling re-scales window size by backingScaleFactor.
This commit is contained in:
parent
68850d331f
commit
fae3b65f05
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user