Fix rendering of Flickable

It should clip to its geometry
This commit is contained in:
Simon Hausmann 2021-02-01 15:35:36 +01:00
parent d065e7e879
commit 69508575ec
4 changed files with 14 additions and 12 deletions

View file

@ -1062,8 +1062,8 @@ impl ItemRenderer for GLItemRenderer {
})
}
fn combine_clip(&mut self, pos: Point, clip: std::pin::Pin<&sixtyfps_corelib::items::Clip>) {
let clip_rect = clip.geometry().translate([pos.x, pos.y].into());
fn combine_clip(&mut self, pos: Point, rect: Rect) {
let clip_rect = rect.translate([pos.x, pos.y].into());
self.shared_data.canvas.borrow_mut().intersect_scissor(
clip_rect.min_x(),
clip_rect.min_y(),