diff options
| author | Micha White <botahamec@outlook.com> | 2022-09-18 21:18:23 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-09-18 21:18:23 -0400 |
| commit | 2d2c88a704455f5dc3e14b557bd52eefcec14d2e (patch) | |
| tree | b53f409d6e7fb7387816640bc76c88ebe7f8364c /examples/square.rs | |
| parent | cd7d74507fa54d026547b7dda9e1498a81a395b5 (diff) | |
Some optimization
Diffstat (limited to 'examples/square.rs')
| -rw-r--r-- | examples/square.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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() }; |
