summaryrefslogtreecommitdiff
path: root/examples/square.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/square.rs')
-rw-r--r--examples/square.rs4
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()
};