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