Pass clip rectangle to PaintCallback

This commit is contained in:
Emil Ernerfeldt
2022-04-15 10:31:33 +02:00
parent 2745699bd6
commit f3e31391e0
4 changed files with 67 additions and 35 deletions
+2 -1
View File
@@ -380,7 +380,8 @@ impl Painter {
}
let info = egui::PaintCallbackInfo {
rect: callback.rect,
viewport: callback.rect,
clip_rect: *clip_rect,
pixels_per_point,
screen_size_px: inner_size,
};