From cd3769a48efcc3fdd2dc1304b1babfe6d26f788d Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 5 Nov 2023 14:17:49 +1300 Subject: Implement window scaling A window now can declare a scale factor to be used when rendering logical pixels to a physical window. Each logical pixel will be drawn as an NxN block of physical pixels, where N is the scale factor. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index b610486..a73f3df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,7 @@ pub use winit::{ event::VirtualKeyCode as KeyCode, window::CursorIcon, }; +pub use std::num::NonZeroU32; pub type Point = geometry::Point; pub type Dimensions = geometry::Dimensions; -- cgit v1.2.3-70-g09d2