Skip to content

Commit

Permalink
version 1.5.1
Browse files Browse the repository at this point in the history
- closes #4
  • Loading branch information
DasEtwas committed Feb 15, 2021
1 parent 65cceca commit c958df1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "enginesound"
version = "1.5.0"
version = "1.5.1"
authors = ["https://github.com/DasEtwas/"]
edition = "2018"
description = """
Expand Down
16 changes: 12 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ use conrod_core::text::Font;
use glium::Surface;
#[cfg(feature = "gui")]
use winit::dpi::PhysicalSize;
#[cfg(feature = "gui")]

#[cfg(all(feature = "gui", target_os = "windows"))]
use winit::platform::windows::WindowBuilderExtWindows;

#[cfg(feature = "gui")]
Expand Down Expand Up @@ -193,15 +194,22 @@ fn main() {

// Build the window.
let mut events_loop = glium::glutin::event_loop::EventLoop::new();
let window = glium::glutin::window::WindowBuilder::new()
let mut window = glium::glutin::window::WindowBuilder::new()
.with_title("Engine Sound Generator")
.with_inner_size::<PhysicalSize<u32>>((WINDOW_WIDTH, WINDOW_HEIGHT).into())
.with_max_inner_size::<PhysicalSize<u32>>(
(WINDOW_WIDTH + 1.0, WINDOW_HEIGHT + 1000.0).into(),
)
.with_min_inner_size::<PhysicalSize<u32>>((WINDOW_WIDTH, WINDOW_HEIGHT).into())
.with_resizable(true)
.with_drag_and_drop(drag_and_drop);
.with_resizable(true);

#[cfg(target_os = "windows")]
window = window.with_drag_and_drop(drag_and_drop);
#[cfg(not(target_os = "windows"))]
if drag_and_drop {
eprintln!("Drag-and-Drop is only supported on windows");
}

let context = glium::glutin::ContextBuilder::new()
.with_vsync(true)
.with_multisampling(4);
Expand Down

0 comments on commit c958df1

Please sign in to comment.