From 85e07d7db56c2e228d543ca17a9df0ef87f349d8 Mon Sep 17 00:00:00 2001 From: "M. Bamberg" Date: Mon, 22 Jul 2024 10:08:44 +0200 Subject: [PATCH] Make fontChars parameter optional in Font.initEx to match rl.loadFontEx (#123) --- lib/preludes/raylib-prelude.zig | 2 +- lib/raylib.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preludes/raylib-prelude.zig b/lib/preludes/raylib-prelude.zig index eb59c9e..71ff73e 100755 --- a/lib/preludes/raylib-prelude.zig +++ b/lib/preludes/raylib-prelude.zig @@ -1282,7 +1282,7 @@ pub const Font = extern struct { } /// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set - pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: []i32) Font { + pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: ?[]i32) Font { return rl.loadFontEx(fileName, fontSize, fontChars); } diff --git a/lib/raylib.zig b/lib/raylib.zig index 18f5e2b..ab0eea2 100644 --- a/lib/raylib.zig +++ b/lib/raylib.zig @@ -1282,7 +1282,7 @@ pub const Font = extern struct { } /// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set - pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: []i32) Font { + pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: ?[]i32) Font { return rl.loadFontEx(fileName, fontSize, fontChars); }