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

Revert "Now in screen_rect min is the viewport position and max is the viewport size"

This reverts commit 4bbdab1788.
This commit is contained in:
Konkitoman
2023-08-24 07:55:56 +03:00
parent c9faa78e5b
commit 9c73c2f4b1
15 changed files with 34 additions and 47 deletions

View File

@@ -106,7 +106,7 @@ fn preview_files_being_dropped(ctx: &egui::Context) {
let painter =
ctx.layer_painter(LayerId::new(Order::Foreground, Id::new("file_drop_target")));
let screen_rect = Rect::from_min_max(Pos2::ZERO, ctx.screen_rect().max);
let screen_rect = ctx.screen_rect();
painter.rect_filled(screen_rect, 0.0, Color32::from_black_alpha(192));
painter.text(
screen_rect.center(),