diff --git a/src/os/unix/mod.rs b/src/os/unix/mod.rs index 0e2f492..2cfc753 100644 --- a/src/os/unix/mod.rs +++ b/src/os/unix/mod.rs @@ -238,7 +238,7 @@ impl Window { let check_res = buffer_helper::check_buffer_size(self.shared_data.width as usize, self.shared_data.height as usize, - self.scale as usize, + self.shared_data.scale as usize, buffer); if check_res.is_err() { return check_res;