From 6c3d286869c66d71b8abe25cabcc6210461c2115 Mon Sep 17 00:00:00 2001 From: keith Date: Sun, 19 Apr 2020 13:22:24 -0700 Subject: [PATCH] fixed patch issue --- Cargo.lock | 2 +- Cargo.toml | 4 ++-- src/window.rs | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 40da6cf..89c2235 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1248,7 +1248,7 @@ dependencies = [ "parking_lot", "rmpv", "rust-embed", - "sdl2", + "sdl2-sys", "skribo", "skulpin", "tokio", diff --git a/Cargo.toml b/Cargo.toml index 2b0f015..ed9e053 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,10 +36,10 @@ winapi = "0.3.8" [build-dependencies] winres = "0.1.11" -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2", default-features = false, features = ["bundled", "static-link"] } +sdl2-sys = { git = "https://github.com/Rust-SDL2/rust-sdl2", default-features = false, features = ["bundled", "static-link"] } [patch.crates-io] -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2", default-features = false, features = ["bundled", "static-link"] } +sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2", default-features = false } [profile.release] debug = true diff --git a/src/window.rs b/src/window.rs index 5c92289..16ab1fd 100644 --- a/src/window.rs +++ b/src/window.rs @@ -6,7 +6,6 @@ use log::{debug, error, info, trace}; use skulpin::sdl2; use skulpin::sdl2::event::{Event, WindowEvent}; use skulpin::sdl2::keyboard::Keycode; -use skulpin::sdl2::video::FullscreenType; use skulpin::sdl2::Sdl; use skulpin::{Window, CoordinateSystem, PresentMode, Renderer as SkulpinRenderer, RendererBuilder, LogicalSize, PhysicalSize, Sdl2Window};