Skip to content

Commit 8925a80

Browse files
authored
Merge pull request glium#1828 from baileyn/testfix
Fix doc-test in src/lib.rs
2 parents e44b97c + 62b72c7 commit 8925a80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ extern crate glium;
1515
1616
fn main() {
1717
// 1. The **winit::EventsLoop** for handling events.
18-
let mut events_loop = glium::glutin::EventsLoop::new();
18+
let mut events_loop = glium::glutin::event_loop::EventLoop::new();
1919
// 2. Parameters for building the Window.
20-
let wb = glium::glutin::WindowBuilder::new()
21-
.with_dimensions(1024, 768)
20+
let wb = glium::glutin::window::WindowBuilder::new()
21+
.with_inner_size(glium::glutin::dpi::LogicalSize::new(1024.0, 768.0))
2222
.with_title("Hello world");
2323
// 3. Parameters for building the OpenGL context.
2424
let cb = glium::glutin::ContextBuilder::new();

0 commit comments

Comments
 (0)