mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-24 03:41:29 +11:00
Fixed bad usage of incorrect Window
This commit is contained in:
parent
4e6d53deab
commit
ae5917741f
|
@ -205,8 +205,8 @@ impl Window {
|
||||||
/// }
|
/// }
|
||||||
///};
|
///};
|
||||||
/// ```
|
/// ```
|
||||||
pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result<imp::Window, &str> {
|
pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result<Window, &str> {
|
||||||
imp::Window::new(name, width, height, scale)
|
imp::Window::new(name, width, height, scale).map(Window)
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue