mach: add headless option (#450)
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
This commit is contained in:
parent
2045142057
commit
f4611e1414
2 changed files with 5 additions and 0 deletions
|
|
@ -406,6 +406,7 @@ pub const Platform = struct {
|
|||
const position = platform.last_position;
|
||||
try platform.window.setMonitor(null, @intCast(i32, position.x), @intCast(i32, position.y), options.width, options.height, null);
|
||||
}
|
||||
if (options.headless) platform.window.hide() catch {};
|
||||
}
|
||||
|
||||
pub fn setShouldClose(platform: *Platform, value: bool) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue