From 2d2c88a704455f5dc3e14b557bd52eefcec14d2e Mon Sep 17 00:00:00 2001 From: Micha White Date: Sun, 18 Sep 2022 21:18:23 -0400 Subject: Some optimization --- examples/square.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/square.rs') diff --git a/examples/square.rs b/examples/square.rs index f9b9223..394d3ca 100644 --- a/examples/square.rs +++ b/examples/square.rs @@ -1,5 +1,7 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] +use std::num::NonZeroU32; + use alligator_render::{Instance, RenderWindowConfig, Renderer}; use winit::event_loop::EventLoop; @@ -8,6 +10,8 @@ fn main() { let config = RenderWindowConfig { title: "Pokemon: Black and White (New Edition)".into(), instance_capacity: 1, + default_width: NonZeroU32::new(480).unwrap(), + default_height: NonZeroU32::new(480).unwrap(), ..Default::default() }; -- cgit v1.2.3