Skip to content

Commit

Permalink
[update #122] GUI: done
Browse files Browse the repository at this point in the history
  • Loading branch information
tiawl committed Jul 28, 2023
1 parent 427e714 commit 6c64b44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/glfw/context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ pub const context_glfw = struct
};
errdefer self.window.destroy ();

const min = glfw.Window.SizeOptional
{
.width = options.window.width.?,
.height = options.window.height.?,
};
const max = glfw.Window.SizeOptional
{
.width = null,
.height = null,
};
self.window.setSizeLimits (min, max);

self.framebuffer_resized = true;
self.window.setUserPointer (&self);
self.window.setFramebufferSizeCallback (framebuffer_resize_callback);
Expand Down

0 comments on commit 6c64b44

Please sign in to comment.