1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

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

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,
};