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

Refactor: make Rect members min/max public

This commit is contained in:
Emil Ernerfeldt
2020-04-25 15:45:38 +02:00
parent e26d08851f
commit cce048509f
10 changed files with 31 additions and 37 deletions

View File

@@ -214,8 +214,8 @@ impl Painter {
for (clip_rect, mesh) in batches {
// Avoid infinities in shader:
let clip_min = clip_rect.min().max(Pos2::default());
let clip_max = clip_rect.max().min(Pos2::default() + screen_size_points);
let clip_min = clip_rect.min.max(Pos2::default());
let clip_max = clip_rect.max.min(Pos2::default() + screen_size_points);
gl.uniform4f(
Some(&u_clip_rect_loc),