1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Refactor: pass Rect:s by value (cleaner)

This commit is contained in:
Emil Ernerfeldt
2020-05-05 19:12:00 +02:00
parent 9d1cf77aa7
commit 6aadf4128e
13 changed files with 39 additions and 39 deletions

View File

@@ -221,7 +221,7 @@ impl Painter {
let mut target = display.draw();
target.clear_color(0.0, 0.0, 0.0, 0.0);
for (clip_rect, mesh) in batches {
self.paint_batch(&mut target, display, &clip_rect, &mesh, texture)
self.paint_batch(&mut target, display, clip_rect, &mesh, texture)
}
target.finish().unwrap();
}
@@ -231,7 +231,7 @@ impl Painter {
&mut self,
target: &mut Frame,
display: &glium::Display,
clip_rect: &Rect,
clip_rect: Rect,
mesh: &Mesh,
texture: &emigui::Texture,
) {