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

View file

@ -734,7 +734,7 @@ impl<T> EventLoop<T> {
callback(Event::WindowEvent {
window_id,
event: WindowEvent::DpiChanged {
event: WindowEvent::ScaleFactorChanged {
scale_factor: dpi,
new_inner_size: &mut new_inner_size,
},

View file

@ -427,7 +427,7 @@ impl<T: 'static> EventProcessor<T> {
callback(Event::WindowEvent {
window_id,
event: WindowEvent::DpiChanged {
event: WindowEvent::ScaleFactorChanged {
scale_factor: new_scale_factor,
new_inner_size: &mut new_inner_size,
},
@ -1148,7 +1148,7 @@ impl<T: 'static> EventProcessor<T> {
callback(Event::WindowEvent {
window_id,
event: WindowEvent::DpiChanged {
event: WindowEvent::ScaleFactorChanged {
scale_factor: new_monitor.scale_factor,
new_inner_size: &mut new_inner_size,
},

View file

@ -192,7 +192,7 @@ impl Handler {
let new_inner_size = &mut size;
let event = Event::WindowEvent {
window_id: WindowId(get_window_id(*ns_window)),
event: WindowEvent::DpiChanged {
event: WindowEvent::ScaleFactorChanged {
scale_factor,
new_inner_size,
},

View file

@ -1415,7 +1415,7 @@ unsafe extern "system" fn public_window_callback<T: 'static>(
// Only sent on Windows 8.1 or newer. On Windows 7 and older user has to log out to change
// DPI, therefore all applications are closed while DPI is changing.
winuser::WM_DPICHANGED => {
use crate::event::WindowEvent::DpiChanged;
use crate::event::WindowEvent::ScaleFactorChanged;
// This message actually provides two DPI values - x and y. However MSDN says that
// "you only need to use either the X-axis or the Y-axis value when scaling your
@ -1499,7 +1499,7 @@ unsafe extern "system" fn public_window_callback<T: 'static>(
let _ = subclass_input.send_event_unbuffered(Event::WindowEvent {
window_id: RootWindowId(WindowId(window)),
event: DpiChanged {
event: ScaleFactorChanged {
scale_factor: new_dpi_factor,
new_inner_size: &mut new_physical_inner_size,
},