1
0
Fork 0

rename UseScaleFactor to ScaleFactor

This commit is contained in:
Billy Messenger 2020-10-20 19:11:47 -05:00
parent 42e8ea6bef
commit 2096c37495
4 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ impl Window {
let scaling = match options.scale {
WindowScalePolicy::SystemScaleFactor => get_scaling().unwrap_or(1.0),
WindowScalePolicy::UseScaleFactor(scale) => scale
WindowScalePolicy::ScaleFactor(scale) => scale
};
let window_info = WindowInfo::from_logical_size(options.size, scaling);

View file

@ -196,7 +196,7 @@ impl Window {
let scaling = match options.scale {
WindowScalePolicy::SystemScaleFactor => get_scaling().unwrap_or(1.0),
WindowScalePolicy::UseScaleFactor(scale) => scale
WindowScalePolicy::ScaleFactor(scale) => scale
};
let window_info = WindowInfo::from_logical_size(options.size, scaling);

View file

@ -6,7 +6,7 @@ pub enum WindowScalePolicy {
/// Use the system's dpi scale factor
SystemScaleFactor,
/// Use the given dpi scale factor (e.g. `1.0` = 96 dpi)
UseScaleFactor(f64),
ScaleFactor(f64),
}
/// The options for opening a new window

View file

@ -101,7 +101,7 @@ impl Window {
let scaling = match options.scale {
WindowScalePolicy::SystemScaleFactor => xcb_connection.get_scaling().unwrap_or(1.0),
WindowScalePolicy::UseScaleFactor(scale) => scale
WindowScalePolicy::ScaleFactor(scale) => scale
};
let window_info = WindowInfo::from_logical_size(options.size, scaling);