mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Replace ui.ctx().foo with ui.foo in a few places (#7774)
Internal code cleanup after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -52,7 +52,7 @@ impl crate::View for TextLayoutDemo {
|
||||
|
||||
use egui::text::LayoutJob;
|
||||
|
||||
let pixels_per_point = ui.ctx().pixels_per_point();
|
||||
let pixels_per_point = ui.pixels_per_point();
|
||||
let points_per_pixel = 1.0 / pixels_per_point;
|
||||
|
||||
ui.vertical_centered(|ui| {
|
||||
|
||||
Reference in New Issue
Block a user