From 7a1a2667b1e55ceff9d3d73c3aeb87e756443e1f Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 13 Jul 2017 21:14:32 +0200 Subject: [PATCH] Reimplement platform_window on win32 --- Cargo.toml | 2 +- src/platform/windows/window.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e33993b4..3a7bb419 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winit" -version = "0.7.3" +version = "0.7.4" authors = ["The winit contributors, Pierre Krieger "] description = "Cross-platform window creation library." keywords = ["windowing"] diff --git a/src/platform/windows/window.rs b/src/platform/windows/window.rs index 250b773c..d0f1189b 100644 --- a/src/platform/windows/window.rs +++ b/src/platform/windows/window.rs @@ -157,7 +157,7 @@ impl Window { } // TODO: remove pub fn platform_window(&self) -> *mut ::libc::c_void { - panic!() // Deprecated function ; we don't care anymore + self.window.0 as *mut ::libc::c_void } /// Returns the `hwnd` of this window.