Finish move to sentinal terminated slices (#203)
This commit is contained in:
parent
bc82c6ebd7
commit
94fa7e23b0
2 changed files with 2 additions and 2 deletions
|
|
@ -2513,7 +2513,7 @@ pub fn drawTextCodepoints(font: Font, codepoints: []const c_int, position: Vecto
|
|||
}
|
||||
|
||||
/// Load UTF-8 text encoded from codepoints array
|
||||
pub fn loadUTF8(codepoints: []const c_int) [*:0]u8 {
|
||||
pub fn loadUTF8(codepoints: []const c_int) [:0]u8 {
|
||||
return std.mem.span(cdef.LoadUTF8(@as([*c]const c_int, @ptrCast(codepoints)), @as(c_int, @intCast(codepoints.len))));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue