This commit is contained in:
Hanno Braun 2025-03-25 21:01:19 +01:00
parent 5af1b5ab22
commit a095a9aece

View File

@ -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;
} }