glfw: undo setSizeLimits workaround
This commit is contained in:
parent
5e2abcbe22
commit
fd3aeebdf7
1 changed files with 1 additions and 2 deletions
|
@ -699,8 +699,7 @@ pub const SizeOptional = struct {
|
||||||
/// @thread_safety This function must only be called from the main thread.
|
/// @thread_safety This function must only be called from the main thread.
|
||||||
///
|
///
|
||||||
/// see also: window_sizelimits, glfw.Window.setAspectRatio
|
/// see also: window_sizelimits, glfw.Window.setAspectRatio
|
||||||
// TODO(self-hosted): make inline fn again, once https://github.com/ziglang/zig/issues/13164 is fixed.
|
pub inline fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
|
||||||
pub fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
|
|
||||||
internal_debug.assertInitialized();
|
internal_debug.assertInitialized();
|
||||||
|
|
||||||
if (min.width != null and max.width != null) {
|
if (min.width != null and max.width != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue