Skip to content

Commit e3ec0fb

Browse files
committed
rename
1 parent d9ac89b commit e3ec0fb

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/open_parented/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl WindowHandler for ParentWindowHandler {
5656

5757
let child_size =
5858
LogicalSize::new(new_size.logical.width / 2., new_size.logical.height / 2.);
59-
self.child_window.suggest_scale_factor(new_size.scale_factor)?;
59+
self.child_window.suggest_fallback_scale_factor(new_size.scale_factor)?;
6060
self.child_window.resize(child_size.into())?;
6161
Ok(())
6262
}

examples/plugin_clack/src/gui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl PluginGuiImpl for ExamplePluginMainThread {
4444
let Some(gui) = &self.gui else {
4545
return Err(PluginError::Message("set_scale called without a GUI active"));
4646
};
47-
gui.handle.suggest_scale_factor(scale)?;
47+
gui.handle.suggest_fallback_scale_factor(scale)?;
4848

4949
Ok(())
5050
}

src/window.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ impl WindowHandle {
4242
///
4343
/// # Platform compatibility notes.
4444
///
45-
/// On Win32, this is used if running on early versions of Windows 10 (or earlier).
45+
/// On Win32, this value is used if running on early versions of Windows 10 (or earlier).
4646
///
47-
/// On X11, this is used if no `Xft.dpi`setting is set.
47+
/// On X11, this value is used if no `Xft.dpi`setting is set.
4848
///
49-
/// On macOS, this is always a no-op.
50-
pub fn suggest_scale_factor(&self, scale_factor: f64) -> Result<(), Error> {
49+
/// On macOS, this function is always a no-op.
50+
pub fn suggest_fallback_scale_factor(&self, scale_factor: f64) -> Result<(), Error> {
5151
self.window_handle.suggest_scale_factor(scale_factor)?;
5252
Ok(())
5353
}

0 commit comments

Comments
 (0)