From 092965cb49d5fa57bcaa95369dc3a917ac39dd95 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sat, 2 Jan 2016 15:36:08 +0100 Subject: [PATCH] Removed VSync flag --- src/windows.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/windows.rs b/src/windows.rs index 58ce1a9..eb90143 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -7,7 +7,6 @@ extern crate gdi32; extern crate time; use Scale; -use Vsync; use Key; use KeyRepeat; @@ -232,7 +231,7 @@ pub struct Window { } impl Window { - fn open_window(name: &str, width: usize, height: usize, scale_factor: i32, _: Vsync) -> Option { + fn open_window(name: &str, width: usize, height: usize, scale_factor: i32) -> Option { unsafe { let class_name = to_wstring("minifb_window"); let class = WNDCLASSW { @@ -303,8 +302,7 @@ impl Window { pub fn new(name: &str, width: usize, height: usize, - scale: Scale, - vsync: Vsync) + scale: Scale) -> Result { unsafe { let scale_factor = Self::get_scale_factor(width, height, scale);