aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/init.rs
diff options
context:
space:
mode:
authorRyan Stewart <ryan@binsoftware.com>2015-03-24 13:29:17 -0700
committerRyan Stewart <ryan@binsoftware.com>2015-03-24 13:29:17 -0700
commit1c9c5c018a24ebd5593c15b184d36945793aff5e (patch)
treed49f13b7a0e133631df01ade58e7fd96e617d103 /src/win32/init.rs
parent1c20ff87f1d58cb1a0f846ab961734291040b45a (diff)
downloadglutin-1c9c5c018a24ebd5593c15b184d36945793aff5e.tar.gz
glutin-1c9c5c018a24ebd5593c15b184d36945793aff5e.zip
enumerate monitors in addition to adapters; this allows the MonitorID implementation to return a more useful monitor name, and the correct native monitor ID
Diffstat (limited to 'src/win32/init.rs')
-rw-r--r--src/win32/init.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs
index 8ec8cb1..8d2eb1e 100644
--- a/src/win32/init.rs
+++ b/src/win32/init.rs
@@ -301,7 +301,7 @@ unsafe fn switch_to_fullscreen(rect: &mut winapi::RECT, monitor: &MonitorID)
screen_settings.dmBitsPerPel = 32; // TODO: ?
screen_settings.dmFields = winapi::DM_BITSPERPEL | winapi::DM_PELSWIDTH | winapi::DM_PELSHEIGHT;
- let result = user32::ChangeDisplaySettingsExW(monitor.get_system_name().as_ptr(),
+ let result = user32::ChangeDisplaySettingsExW(monitor.get_adapter_name().as_ptr(),
&mut screen_settings, ptr::null_mut(),
winapi::CDS_FULLSCREEN, ptr::null_mut());