From 79be38a1e69e5ee1dc9a1db02612ff41f8521c9d Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 14 Aug 2021 01:02:18 -0500 Subject: [PATCH] fix(main): rename constant SCALE to WINDOW_SCALE --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6350030..9f34a94 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,7 +122,10 @@ fn main() -> Result<()> { #[cfg(not(windows))] fn create_window(event_loop: &EventLoop<()>, title: &str) -> Result { - let size = LogicalSize::new((GB_WIDTH as f64) * SCALE, (GB_HEIGHT as f64) * SCALE); + let size = LogicalSize::new( + (GB_WIDTH as f64) * WINDOW_SCALE, + (GB_HEIGHT as f64) * WINDOW_SCALE, + ); Ok(WindowBuilder::new() .with_title(title) .with_inner_size(size)