glfw: fix setIcon pointer constness
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ed2185f7e4
commit
4ed407c983
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ pub inline fn setTitle(self: Window, title: [*:0]const u8) void {
|
|||
/// @thread_safety This function must only be called from the main thread.
|
||||
///
|
||||
/// see also: window_icon
|
||||
pub inline fn setIcon(self: Window, allocator: mem.Allocator, images: ?[]Image) mem.Allocator.Error!void {
|
||||
pub inline fn setIcon(self: Window, allocator: mem.Allocator, images: ?[]const Image) mem.Allocator.Error!void {
|
||||
internal_debug.assertInitialized();
|
||||
if (images) |im| {
|
||||
const tmp = try allocator.alloc(c.GLFWimage, im.len);
|
||||
|
|
Loading…
Add table
Reference in a new issue