mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Now in screen_rect min is the viewport position and max is the viewport size
This commit is contained in:
@@ -449,7 +449,7 @@ impl WrapApp {
|
||||
let painter =
|
||||
ctx.layer_painter(LayerId::new(Order::Foreground, Id::new("file_drop_target")));
|
||||
|
||||
let screen_rect = ctx.screen_rect();
|
||||
let screen_rect = Rect::from_min_max(Pos2::ZERO, ctx.screen_rect().max);
|
||||
painter.rect_filled(screen_rect, 0.0, Color32::from_black_alpha(192));
|
||||
painter.text(
|
||||
screen_rect.center(),
|
||||
|
||||
Reference in New Issue
Block a user