mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix rendering of Flickable
It should clip to its geometry
This commit is contained in:
parent
d065e7e879
commit
69508575ec
4 changed files with 14 additions and 12 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue