small fixes and update (#277)

This commit is contained in:
Rémi Lauzier 2022-02-18 03:32:00 -05:00 committed by GitHub
parent 032d616bbe
commit 4962afd3f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "minifb"
version = "0.20.0"
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
authors = ["Daniel Collin <daniel@collin.com>"]
description = "Cross-platform window setup with optional bitmap rendering"
keywords = ["windowing", "window", "framebuffer"]
@ -46,7 +46,7 @@ wayland = ["wayland-client", "wayland-protocols", "wayland-cursor", "tempfile",
wayland-client = {version = "0.29", optional = true}
wayland-protocols = { version = "0.29", features = ["client", "unstable_protocols"], 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}
xkbcommon-sys = {version = "0.7.5", optional = true}
x11-dl = {version = "2.19.1", optional = true}

View file

@ -648,11 +648,8 @@ impl Window {
}
pub fn get_position(&self) -> (isize, isize) {
let (mut x, mut y) = (0, 0);
unsafe {
// todo!("get_position");
}
let (x, y) = (0, 0);
// todo!("get_position");
(x as isize, y as isize)
}