diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2023-11-05 14:17:49 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2023-11-05 14:17:49 +1300 |
commit | cd3769a48efcc3fdd2dc1304b1babfe6d26f788d (patch) | |
tree | 37c62c9ce10bd415326e4b1abac42e3a73d8d78f /src/lib.rs | |
parent | 8e08d723ff7a853f2b10dc0f1408911d5801cea8 (diff) | |
download | phosphor-cd3769a48efcc3fdd2dc1304b1babfe6d26f788d.zip |
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.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -14,6 +14,7 @@ pub use winit::{ event::VirtualKeyCode as KeyCode, window::CursorIcon, }; +pub use std::num::NonZeroU32; pub type Point = geometry::Point<i32>; pub type Dimensions = geometry::Dimensions<u32>; |