From 6ece84f5c04f7b290bdd02cf40032f6e8444ccf6 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Tue, 22 Sep 2015 14:08:23 -0400 Subject: [PATCH] win32: remove unimplemented!() from platform_display() --- src/api/win32/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs index a4ca2759..235fa2f4 100644 --- a/src/api/win32/mod.rs +++ b/src/api/win32/mod.rs @@ -215,7 +215,10 @@ impl Window { } pub fn platform_display(&self) -> *mut libc::c_void { - unimplemented!() + // What should this return on win32? + // It could be GetDC(NULL), but that requires a ReleaseDC() + // to avoid leaking the DC. + ptr::null_mut() } pub fn platform_window(&self) -> *mut libc::c_void {