mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Simplify
This commit is contained in:
parent
5af1b5ab22
commit
a095a9aece
@ -177,11 +177,11 @@ impl ViewerWindow {
|
||||
|
||||
/// Draw the graphics
|
||||
pub fn draw(&mut self) {
|
||||
let size_is_valid = {
|
||||
let size_is_invalid = {
|
||||
let size = self.window.size();
|
||||
size.width > 0 && size.height > 0
|
||||
size.width == 0 || size.height == 0
|
||||
};
|
||||
if !size_is_valid {
|
||||
if size_is_invalid {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user