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:
parent
ed0e6f5c61
commit
176554fe4d
4 changed files with 11 additions and 13 deletions
|
|
@ -25,6 +25,12 @@ pub const Options = struct {
|
|||
/// The height of the window.
|
||||
height: u32 = 480,
|
||||
|
||||
/// The minimum allowed size for the window.
|
||||
size_min: SizeOptional = .{ .width = null, .height = null },
|
||||
|
||||
/// The maximum allowed size for the window.
|
||||
size_max: SizeOptional = .{ .width = null, .height = null },
|
||||
|
||||
/// Monitor synchronization modes.
|
||||
vsync: enums.VSyncMode = .double,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue