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

[glium] update to latest glium with EventLoop and vsync

This commit is contained in:
Emil Ernerfeldt
2020-07-22 00:36:17 +02:00
parent 6b6545958d
commit 9b9cd01c5c
10 changed files with 562 additions and 274 deletions

View File

@@ -233,7 +233,7 @@ impl Painter {
let index_buffer =
glium::IndexBuffer::new(display, PrimitiveType::TrianglesList, &indices).unwrap();
let pixels_per_point = display.gl_window().get_hidpi_factor() as f32;
let pixels_per_point = display.gl_window().window().scale_factor() as f32;
let (width_pixels, height_pixels) = display.get_framebuffer_dimensions();
let width_points = width_pixels as f32 / pixels_per_point;
let height_points = height_pixels as f32 / pixels_per_point;