Commit 7cc179c6 authored by Ivan Molodetskikh's avatar Ivan Molodetskikh

Return correct bounds from get_input()

parent 7669a121
......@@ -292,26 +292,14 @@ impl FilterContext {
// source graphic.
return Some(self.last_result().cloned().unwrap_or_else(|| FilterOutput {
surface: self.source_graphic().clone(),
// TODO
bounds: IRect {
x0: 0,
y0: 0,
x1: 0,
y1: 0,
},
bounds: self.compute_bounds(None, None, None, None),
}));
}
match *in_.unwrap() {
Input::SourceGraphic => Some(FilterOutput {
surface: self.source_graphic().clone(),
// TODO
bounds: IRect {
x0: 0,
y0: 0,
x1: 0,
y1: 0,
},
bounds: self.compute_bounds(None, None, None, None),
}),
Input::SourceAlpha => unimplemented!(),
Input::BackgroundImage => unimplemented!(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment