anvil.window_map: use Rectangle::default
This commit is contained in:
parent
52d86d3abf
commit
d30567512c
|
@ -170,12 +170,7 @@ where
|
||||||
pub fn insert(&mut self, toplevel: Kind<R>, location: (i32, i32)) {
|
pub fn insert(&mut self, toplevel: Kind<R>, location: (i32, i32)) {
|
||||||
let mut window = Window {
|
let mut window = Window {
|
||||||
location,
|
location,
|
||||||
input_bbox: Rectangle {
|
input_bbox: Rectangle::default(),
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
width: 0,
|
|
||||||
height: 0,
|
|
||||||
},
|
|
||||||
toplevel,
|
toplevel,
|
||||||
};
|
};
|
||||||
window.self_update(self.ctoken, &self.get_size);
|
window.self_update(self.ctoken, &self.get_size);
|
||||||
|
|
Loading…
Reference in New Issue