diff src/state.rs @ 15:d103f7cca0bd

Update to GTKĀ 4.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 26 Aug 2021 19:34:40 +0200
parents adab13145994
children 478cf2a7d577
line wrap: on
line diff
--- a/src/state.rs
+++ b/src/state.rs
@@ -46,7 +46,7 @@ impl State {
         })
     }
 
-    pub fn set_size(&mut self, (width, height): (u32, u32)) {
+    pub fn set_size(&mut self, width: i32, height: i32) {
         self.width = width as f64;
         self.height = height as f64;
     }