Add changelog entry

This commit is contained in:
Osspial 2020-01-05 16:57:32 -05:00
parent a1b8d265d0
commit 3aa3880e69
10 changed files with 21 additions and 15 deletions

View file

@ -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,
},

View file

@ -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();