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
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user