mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixes bug #1049: iOS orientation change handling re-scales window size by backingScaleFactor.
This commit is contained in:
parent
1424fa4dc3
commit
eacdafe9d7
@ -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