{mach,examples,shaderexp}: fix default minimum window size

This commit is contained in:
praschke 2022-09-15 12:46:39 +00:00 committed by Stephen Gutekanst
parent 9676665ccf
commit a873227ab8
11 changed files with 4 additions and 47 deletions

View file

@ -24,13 +24,6 @@ last_mtime: i128,
pub fn init(app: *App, core: *mach.Core) !void {
timer = try std.time.Timer.start();
// On linux if we don't set a minimum size, you can squish the window to 0 pixels of width and height,
// this makes some strange effects when that happens, so it's better to leave a minimum size to avoid that,
// this doesn't prevent you from minimizing the window.
try core.setOptions(.{
.size_min = .{ .width = 20, .height = 20 },
});
var fragment_file: std.fs.File = undefined;
var last_mtime: i128 = undefined;