Merge pull request #87 from mahkoh/jorth/fix-surface-position
render: fix top-left clipping of surfaces
This commit is contained in:
commit
30fb0f087f
18 changed files with 147 additions and 277 deletions
|
|
@ -335,15 +335,8 @@ impl Node for Xwindow {
|
|||
FindTreeResult::Other
|
||||
}
|
||||
|
||||
fn node_render(
|
||||
&self,
|
||||
renderer: &mut Renderer,
|
||||
x: i32,
|
||||
y: i32,
|
||||
max_width: i32,
|
||||
max_height: i32,
|
||||
) {
|
||||
renderer.render_surface(&self.x.surface, x, y, max_width, max_height)
|
||||
fn node_render(&self, renderer: &mut Renderer, x: i32, y: i32, bounds: Option<&Rect>) {
|
||||
renderer.render_surface(&self.x.surface, x, y, bounds)
|
||||
}
|
||||
|
||||
fn node_client(&self) -> Option<Rc<Client>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue