mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-30 13:56:08 +00:00
Remove redundant struct field
This commit is contained in:
parent
394f5417b3
commit
532187d22b
@ -29,7 +29,6 @@ pub fn display(model: Model, invert_zoom: bool) -> Result<(), Error> {
|
|||||||
viewer: None,
|
viewer: None,
|
||||||
held_mouse_button: None,
|
held_mouse_button: None,
|
||||||
new_size: None,
|
new_size: None,
|
||||||
stop_drawing: false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
event_loop.run_app(&mut display_state)?;
|
event_loop.run_app(&mut display_state)?;
|
||||||
@ -60,7 +59,6 @@ struct DisplayState {
|
|||||||
viewer: Option<Viewer>,
|
viewer: Option<Viewer>,
|
||||||
held_mouse_button: Option<MouseButton>,
|
held_mouse_button: Option<MouseButton>,
|
||||||
new_size: Option<ScreenSize>,
|
new_size: Option<ScreenSize>,
|
||||||
stop_drawing: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ApplicationHandler for DisplayState {
|
impl ApplicationHandler for DisplayState {
|
||||||
@ -129,7 +127,6 @@ impl ApplicationHandler for DisplayState {
|
|||||||
width: size.width,
|
width: size.width,
|
||||||
height: size.height,
|
height: size.height,
|
||||||
};
|
};
|
||||||
self.stop_drawing = !size.is_valid();
|
|
||||||
self.new_size = Some(size);
|
self.new_size = Some(size);
|
||||||
}
|
}
|
||||||
WindowEvent::MouseInput { state, button, .. } => match state {
|
WindowEvent::MouseInput { state, button, .. } => match state {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user