Add changelog entry
This commit is contained in:
parent
a1b8d265d0
commit
3aa3880e69
10 changed files with 21 additions and 15 deletions
|
|
@ -865,7 +865,7 @@ fn handle_hidpi_proxy(
|
|||
let new_inner_size = &mut size;
|
||||
let event = Event::WindowEvent {
|
||||
window_id: RootWindowId(window_id.into()),
|
||||
event: WindowEvent::DpiChanged {
|
||||
event: WindowEvent::ScaleFactorChanged {
|
||||
scale_factor,
|
||||
new_inner_size,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -398,7 +398,7 @@ impl Window {
|
|||
};
|
||||
app_state::set_key_window(window);
|
||||
|
||||
// Like the Windows and macOS backends, we send a `DpiChanged` and `Resized`
|
||||
// Like the Windows and macOS backends, we send a `ScaleFactorChanged` and `Resized`
|
||||
// event on window creation if the DPI factor != 1.0
|
||||
let dpi_factor: CGFloat = msg_send![view, contentScaleFactor];
|
||||
let scale_factor: f64 = dpi_factor.into();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue