Convert new fullscreen API in all platforms
This commit is contained in:
parent
1382adbf11
commit
9693f7caa9
10 changed files with 14 additions and 28 deletions
|
|
@ -34,12 +34,6 @@ pub struct MonitorId {
|
|||
dimensions: (u32, u32),
|
||||
}
|
||||
|
||||
impl PartialEq for MonitorId {
|
||||
fn eq(&self, other: &MonitorId) -> bool {
|
||||
self.monitor_name == other.monitor_name
|
||||
}
|
||||
}
|
||||
|
||||
struct DeviceEnumerator {
|
||||
parent_device: *const winapi::WCHAR,
|
||||
current_index: u32,
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use CreationError;
|
|||
use CursorState;
|
||||
use MouseCursor;
|
||||
use WindowAttributes;
|
||||
use FullScreenState;
|
||||
|
||||
use dwmapi;
|
||||
use kernel32;
|
||||
|
|
@ -282,7 +283,7 @@ impl Window {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_fullscreen_windowed(&self, fullscreen: bool) {
|
||||
pub fn set_fullscreen(&self, state: FullScreenState) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -329,7 +330,7 @@ unsafe fn init(window: WindowAttributes, pl_attribs: PlatformSpecificWindowBuild
|
|||
// and change the monitor's resolution if necessary
|
||||
if let Some(ref monitor) = window.fullscreen.get_monitor() {
|
||||
try!(switch_to_fullscreen(&mut rect, monitor));
|
||||
}
|
||||
};
|
||||
|
||||
let fullscreen = window.fullscreen.get_monitor().is_some();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue