rename UseScaleFactor to ScaleFactor
This commit is contained in:
parent
42e8ea6bef
commit
2096c37495
|
@ -43,7 +43,7 @@ impl Window {
|
||||||
|
|
||||||
let scaling = match options.scale {
|
let scaling = match options.scale {
|
||||||
WindowScalePolicy::SystemScaleFactor => get_scaling().unwrap_or(1.0),
|
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);
|
let window_info = WindowInfo::from_logical_size(options.size, scaling);
|
||||||
|
|
|
@ -196,7 +196,7 @@ impl Window {
|
||||||
|
|
||||||
let scaling = match options.scale {
|
let scaling = match options.scale {
|
||||||
WindowScalePolicy::SystemScaleFactor => get_scaling().unwrap_or(1.0),
|
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);
|
let window_info = WindowInfo::from_logical_size(options.size, scaling);
|
||||||
|
|
|
@ -6,7 +6,7 @@ pub enum WindowScalePolicy {
|
||||||
/// Use the system's dpi scale factor
|
/// Use the system's dpi scale factor
|
||||||
SystemScaleFactor,
|
SystemScaleFactor,
|
||||||
/// Use the given dpi scale factor (e.g. `1.0` = 96 dpi)
|
/// Use the given dpi scale factor (e.g. `1.0` = 96 dpi)
|
||||||
UseScaleFactor(f64),
|
ScaleFactor(f64),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The options for opening a new window
|
/// The options for opening a new window
|
||||||
|
|
|
@ -101,7 +101,7 @@ impl Window {
|
||||||
|
|
||||||
let scaling = match options.scale {
|
let scaling = match options.scale {
|
||||||
WindowScalePolicy::SystemScaleFactor => xcb_connection.get_scaling().unwrap_or(1.0),
|
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);
|
let window_info = WindowInfo::from_logical_size(options.size, scaling);
|
||||||
|
|
Loading…
Reference in a new issue