mach: Make size limits part of runtime options (mach.Options)

Removed method Engine.setSizeLimits and added two new fields to
mach.Options called ``size_min`` and ``size_max`` which does the same
thing.
This commit is contained in:
iddev5 2022-06-01 12:56:48 +05:30 committed by Stephen Gutekanst
parent ed0e6f5c61
commit 176554fe4d
4 changed files with 11 additions and 13 deletions

View file

@ -71,10 +71,6 @@ pub fn getWindowSize(engine: *Engine) structs.Size {
return engine.internal.getWindowSize();
}
pub fn setSizeLimits(engine: *Engine, min: structs.SizeOptional, max: structs.SizeOptional) !void {
return engine.internal.setSizeLimits(min, max);
}
pub fn pollEvent(engine: *Engine) ?structs.Event {
return engine.internal.pollEvent();
}