We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e44b97c + 62b72c7 commit 8925a80Copy full SHA for 8925a80
src/lib.rs
@@ -15,10 +15,10 @@ extern crate glium;
15
16
fn main() {
17
// 1. The **winit::EventsLoop** for handling events.
18
- let mut events_loop = glium::glutin::EventsLoop::new();
+ let mut events_loop = glium::glutin::event_loop::EventLoop::new();
19
// 2. Parameters for building the Window.
20
- let wb = glium::glutin::WindowBuilder::new()
21
- .with_dimensions(1024, 768)
+ let wb = glium::glutin::window::WindowBuilder::new()
+ .with_inner_size(glium::glutin::dpi::LogicalSize::new(1024.0, 768.0))
22
.with_title("Hello world");
23
// 3. Parameters for building the OpenGL context.
24
let cb = glium::glutin::ContextBuilder::new();
0 commit comments