examples, shaderexp: update to new options and size limit API

This commit is contained in:
iddev5 2022-06-01 13:13:06 +05:30 committed by Stephen Gutekanst
parent 176554fe4d
commit 7b395759b7
8 changed files with 26 additions and 10 deletions

View file

@ -42,7 +42,9 @@ pub fn init(app: *App, engine: *mach.Engine) !void {
// 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 engine.setSizeLimits(.{ .width = 20, .height = 20 }, .{ .width = null, .height = null });
try engine.setOptions(.{
.size_min = .{ .width = 20, .height = 20 },
});
var fragment_file: std.fs.File = undefined;
var last_mtime: i128 = undefined;