mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Added fullscreen support for X11
This commit is contained in:
committed by
Tomaka17
parent
ac74db979c
commit
55ebd4935e
@@ -58,6 +58,7 @@ pub struct WindowBuilder {
|
||||
title: String,
|
||||
monitor: Option<winimpl::MonitorID>,
|
||||
gl_version: Option<(uint, uint)>,
|
||||
is_fullscreen: bool,
|
||||
}
|
||||
|
||||
impl WindowBuilder {
|
||||
@@ -68,6 +69,7 @@ impl WindowBuilder {
|
||||
title: "gl-init-rs window".to_string(),
|
||||
monitor: None,
|
||||
gl_version: None,
|
||||
is_fullscreen: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,6 +93,7 @@ impl WindowBuilder {
|
||||
pub fn with_fullscreen(mut self, monitor: MonitorID) -> WindowBuilder {
|
||||
let MonitorID(monitor) = monitor;
|
||||
self.monitor = Some(monitor);
|
||||
self.is_fullscreen = true;
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user