mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-24 03:41:29 +11:00
Removed VSync flag
This commit is contained in:
parent
a996f9b865
commit
092965cb49
|
@ -7,7 +7,6 @@ extern crate gdi32;
|
||||||
extern crate time;
|
extern crate time;
|
||||||
|
|
||||||
use Scale;
|
use Scale;
|
||||||
use Vsync;
|
|
||||||
use Key;
|
use Key;
|
||||||
use KeyRepeat;
|
use KeyRepeat;
|
||||||
|
|
||||||
|
@ -232,7 +231,7 @@ pub struct Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
fn open_window(name: &str, width: usize, height: usize, scale_factor: i32, _: Vsync) -> Option<HWND> {
|
fn open_window(name: &str, width: usize, height: usize, scale_factor: i32) -> Option<HWND> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let class_name = to_wstring("minifb_window");
|
let class_name = to_wstring("minifb_window");
|
||||||
let class = WNDCLASSW {
|
let class = WNDCLASSW {
|
||||||
|
@ -303,8 +302,7 @@ impl Window {
|
||||||
pub fn new(name: &str,
|
pub fn new(name: &str,
|
||||||
width: usize,
|
width: usize,
|
||||||
height: usize,
|
height: usize,
|
||||||
scale: Scale,
|
scale: Scale)
|
||||||
vsync: Vsync)
|
|
||||||
-> Result<Window, &str> {
|
-> Result<Window, &str> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let scale_factor = Self::get_scale_factor(width, height, scale);
|
let scale_factor = Self::get_scale_factor(width, height, scale);
|
||||||
|
|
Loading…
Reference in a new issue