From c4b33d50b20d38bd77fcf5f80ea7f2aafaab4d3e Mon Sep 17 00:00:00 2001 From: Alula Date: Thu, 29 Oct 2020 23:49:36 +0100 Subject: [PATCH] fuck rust, i made a typo --- src/ggez/graphics/context.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ggez/graphics/context.rs b/src/ggez/graphics/context.rs index 2d06bee..f7e9bd2 100644 --- a/src/ggez/graphics/context.rs +++ b/src/ggez/graphics/context.rs @@ -5,6 +5,8 @@ use std::rc::Rc; use gfx::Factory; use gfx::traits::FactoryExt; use glutin; +#[cfg(target_os = "windows")] +use glutin::platform::windows::WindowBuilderExtWindows; use glutin::PossiblyCurrent; use winit::{self, dpi}; use winit::window::Fullscreen; @@ -15,8 +17,6 @@ use crate::ggez::error::GameResult; use crate::ggez::filesystem::Filesystem; use crate::ggez::GameError; use crate::ggez::graphics::*; -#[cfg(target_os = "windows")] -use glutin::platform::windows::WindowBuilderExtWindows; /// A structure that contains graphics state. /// For instance, @@ -107,7 +107,9 @@ impl GraphicsContextGeneric { .with_inner_size(window_size) .with_resizable(window_mode.resizable); #[cfg(target_os = "windows")] - windows_builder = window_builder.with_drag_and_drop(false); + { + window_builder = window_builder.with_drag_and_drop(false); + } window_builder = if !window_setup.icon.is_empty() { let icon = load_icon(window_setup.icon.as_ref(), filesystem)?;