mirror of
https://github.com/bdnugget/raylib-zig.git
synced 2026-11-07 06:07:27 +00:00
Make fontChars parameter optional in Font.initEx to match rl.loadFontEx (#123)
This commit is contained in:
1 parent
201926cfd3
commit
85e07d7db5
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user