mach: add borderless_window option
This commit is contained in:
parent
c26592ea89
commit
b8deaf8010
2 changed files with 7 additions and 0 deletions
|
|
@ -320,6 +320,10 @@ pub const Platform = struct {
|
|||
|
||||
platform.last_position = try platform.window.getPos();
|
||||
|
||||
if (options.borderless_window) {
|
||||
try glfw.Window.setAttrib(platform.window, .decorated, false);
|
||||
}
|
||||
|
||||
if (options.fullscreen) {
|
||||
var monitor: ?glfw.Monitor = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,9 @@ pub const Options = struct {
|
|||
/// Headless mode.
|
||||
headless: bool = false,
|
||||
|
||||
/// Borderless window
|
||||
borderless_window: bool = false,
|
||||
|
||||
/// Monitor synchronization modes.
|
||||
vsync: enums.VSyncMode = .double,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue