aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2015-09-22 14:08:23 -0400
committerVladimir Vukicevic <vladimir@pobox.com>2015-09-22 14:23:56 -0400
commit6ece84f5c04f7b290bdd02cf40032f6e8444ccf6 (patch)
treed55876c2270a5e5c761f34475130a0a2fb7462bc /src/api/win32
parent059821a99c6227e3b5ea271dc31c561a7a65d95b (diff)
downloadglutin-6ece84f5c04f7b290bdd02cf40032f6e8444ccf6.tar.gz
glutin-6ece84f5c04f7b290bdd02cf40032f6e8444ccf6.zip
win32: remove unimplemented!() from platform_display()
Diffstat (limited to 'src/api/win32')
-rw-r--r--src/api/win32/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs
index a4ca275..235fa2f 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 {