Make fontChars parameter optional in Font.initEx to match rl.loadFontEx (#123)

This commit is contained in:
M. Bamberg 2024-07-22 10:08:44 +02:00 committed by GitHub
parent 201926cfd3
commit 85e07d7db5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}