From d12cdb02d767c6c8ca128e87f2a4719d0aa4a683 Mon Sep 17 00:00:00 2001 From: shivshank Date: Tue, 24 Jul 2018 18:13:22 -0400 Subject: [PATCH] Remove wildcard dependencies (oops!) --- Cargo.toml | 6 +++--- src/lib.rs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dd842c8..9897193 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "mini_gl_fb" -version = "0.2.0" +version = "0.2.1" authors = ["shivshank"] [dependencies] -glutin = "*" -gl = "*" +glutin = "0.17.0" +gl = "0.10.0" [dependencies.rustic_gl] git = "https://github.com/shivshank/rustic_gl.git" diff --git a/src/lib.rs b/src/lib.rs index 6294e98..ea4c158 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,7 @@ extern crate rustic_gl; extern crate gl; use glutin::GlContext; +use glutin::dpi::LogicalSize; use gl::types::*; @@ -19,7 +20,7 @@ pub fn gotta_go_fast(window_title: S, window_width: i32, window_hei let events_loop = glutin::EventsLoop::new(); let window = glutin::WindowBuilder::new() .with_title(window_title.to_string()) - .with_dimensions(window_width as _, window_height as _); + .with_dimensions(LogicalSize::new(window_width as _, window_height as _)); let context = glutin::ContextBuilder::new(); let gl_window = glutin::GlWindow::new(window, context, &events_loop).unwrap();