diff --git a/crates/fj-viewer/src/viewer.rs b/crates/fj-viewer/src/viewer.rs index e46d415d2..fc8b7a713 100644 --- a/crates/fj-viewer/src/viewer.rs +++ b/crates/fj-viewer/src/viewer.rs @@ -178,7 +178,7 @@ impl ViewerWindow { /// Draw the graphics pub fn draw(&mut self) { let size_is_invalid = { - let size = self.window.size(); + let size = self.window.inner.inner_size(); size.width == 0 || size.height == 0 }; if size_is_invalid { diff --git a/crates/fj-viewer/src/window.rs b/crates/fj-viewer/src/window.rs index 456f7c5e5..a9d59a34a 100644 --- a/crates/fj-viewer/src/window.rs +++ b/crates/fj-viewer/src/window.rs @@ -5,17 +5,6 @@ pub struct Window { pub inner: Arc, } -impl Window { - pub fn size(&self) -> WindowSize { - let size = self.inner.inner_size(); - - WindowSize { - width: size.width, - height: size.height, - } - } -} - /// Cursor position in normalized coordinates (-1 to +1) /// /// The center of the screen is at (0, 0). The aspect ratio is taken into