Removed physical_size

pull/10/head
Roman Frołow 4 years ago committed by GitHub
parent aa45a0605f
commit 9d5f4b5956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,7 +118,6 @@ If we want to support resizing in our application, we're going to need to recrea
```rust
// impl State
fn resize(&mut self, new_size: winit::dpi::PhysicalSize<u32>) {
let physical_size = new_size.to_physical(self.hidpi_factor);
self.size = new_size;
self.sc_desc.width = new_size.width;
self.sc_desc.height = new_size.height;
@ -337,4 +336,4 @@ In the event loop we're currently using `*control_flow = ControlFlow::Wait` in m
Modify the `input()` method to capture mouse events, and update the clear color using that. *Hint: you'll probably need to use `WindowEvent::CursorMoved`*
<AutoGithubLink/>
<AutoGithubLink/>

Loading…
Cancel
Save