mach: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
70283bfcb4
commit
c5432a9353
1 changed files with 11 additions and 13 deletions
|
|
@ -499,13 +499,11 @@ pub fn main() !void {
|
||||||
if (engine.internal.wait_event_timeout == std.math.floatMax(f64)) {
|
if (engine.internal.wait_event_timeout == std.math.floatMax(f64)) {
|
||||||
// no timeout
|
// no timeout
|
||||||
try glfw.waitEvents();
|
try glfw.waitEvents();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// with a timeout
|
// with a timeout
|
||||||
try glfw.waitEventsTimeout(engine.internal.wait_event_timeout);
|
try glfw.waitEventsTimeout(engine.internal.wait_event_timeout);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// don't wait
|
// don't wait
|
||||||
try glfw.pollEvents();
|
try glfw.pollEvents();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue