mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-10 02:51:32 +11:00
small fixes and update (#277)
This commit is contained in:
parent
032d616bbe
commit
4962afd3f5
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "minifb"
|
name = "minifb"
|
||||||
version = "0.20.0"
|
version = "0.20.0"
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
authors = ["Daniel Collin <daniel@collin.com>"]
|
authors = ["Daniel Collin <daniel@collin.com>"]
|
||||||
description = "Cross-platform window setup with optional bitmap rendering"
|
description = "Cross-platform window setup with optional bitmap rendering"
|
||||||
keywords = ["windowing", "window", "framebuffer"]
|
keywords = ["windowing", "window", "framebuffer"]
|
||||||
|
@ -46,7 +46,7 @@ wayland = ["wayland-client", "wayland-protocols", "wayland-cursor", "tempfile",
|
||||||
wayland-client = {version = "0.29", optional = true}
|
wayland-client = {version = "0.29", optional = true}
|
||||||
wayland-protocols = { version = "0.29", features = ["client", "unstable_protocols"], optional = true }
|
wayland-protocols = { version = "0.29", features = ["client", "unstable_protocols"], optional = true }
|
||||||
wayland-cursor = {version = "0.29", optional = true}
|
wayland-cursor = {version = "0.29", optional = true}
|
||||||
tempfile = {version = "3.2", optional = true}
|
tempfile = {version = "3.3", optional = true}
|
||||||
xkb = {version = "0.2.1", optional = true}
|
xkb = {version = "0.2.1", optional = true}
|
||||||
xkbcommon-sys = {version = "0.7.5", optional = true}
|
xkbcommon-sys = {version = "0.7.5", optional = true}
|
||||||
x11-dl = {version = "2.19.1", optional = true}
|
x11-dl = {version = "2.19.1", optional = true}
|
||||||
|
|
|
@ -648,11 +648,8 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_position(&self) -> (isize, isize) {
|
pub fn get_position(&self) -> (isize, isize) {
|
||||||
let (mut x, mut y) = (0, 0);
|
let (x, y) = (0, 0);
|
||||||
|
|
||||||
unsafe {
|
|
||||||
// todo!("get_position");
|
// todo!("get_position");
|
||||||
}
|
|
||||||
|
|
||||||
(x as isize, y as isize)
|
(x as isize, y as isize)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue