Skip to content

Commit b59c855

Browse files
committed
Fmt.
1 parent 13eb283 commit b59c855

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

crates/processing_pyo3/src/glfw.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,23 @@ impl GlfwContext {
3232
#[cfg(target_os = "macos")]
3333
pub fn create_surface(&self, width: u32, height: u32, scale_factor: f32) -> Result<Entity> {
3434
use processing::prelude::surface_create_macos;
35-
surface_create_macos(self.window.get_cocoa_window() as u64, width, height, scale_factor)
35+
surface_create_macos(
36+
self.window.get_cocoa_window() as u64,
37+
width,
38+
height,
39+
scale_factor,
40+
)
3641
}
3742

3843
#[cfg(target_os = "windows")]
3944
pub fn create_surface(&self, width: u32, height: u32, scale_factor: f32) -> Result<Entity> {
4045
use processing::prelude::surface_create_windows;
41-
surface_create_windows(self.window.get_win32_window() as u64, width, height, scale_factor)
46+
surface_create_windows(
47+
self.window.get_win32_window() as u64,
48+
width,
49+
height,
50+
scale_factor,
51+
)
4252
}
4353

4454
#[cfg(all(target_os = "linux", feature = "wayland"))]

examples/glfw.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,23 @@ impl GlfwContext {
3333
#[cfg(target_os = "macos")]
3434
pub fn create_surface(&self, width: u32, height: u32, scale_factor: f32) -> Result<Entity> {
3535
use processing_render::surface_create_macos;
36-
surface_create_macos(self.window.get_cocoa_window() as u64, width, height, scale_factor)
36+
surface_create_macos(
37+
self.window.get_cocoa_window() as u64,
38+
width,
39+
height,
40+
scale_factor,
41+
)
3742
}
3843

3944
#[cfg(target_os = "windows")]
4045
pub fn create_surface(&self, width: u32, height: u32, scale_factor: f32) -> Result<Entity> {
4146
use processing_render::surface_create_windows;
42-
surface_create_windows(self.window.get_win32_window() as u64, width, height, scale_factor)
47+
surface_create_windows(
48+
self.window.get_win32_window() as u64,
49+
width,
50+
height,
51+
scale_factor,
52+
)
4353
}
4454

4555
#[cfg(all(target_os = "linux", feature = "wayland"))]

0 commit comments

Comments
 (0)