Skip to content

Commit c3e9b16

Browse files
committed
Update types
1 parent 4487028 commit c3e9b16

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

vendor/kb_text_shape/kb_text_shape_procs.odin

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ PlaceShapeStateFromSlice :: proc "c" (Memory: []byte) -> ^shape_state {
5353
}
5454

5555
@(require_results)
56-
DecodeUtf8String :: proc "c" (String: string) -> decode {
57-
return DecodeUtf8(raw_data(String), len(String))
56+
DecodeUtf8String :: proc "c" (String: string) -> (Codepoint: rune, SourceCharactersConsumed: u32, Valid: b32) {
57+
Decode := DecodeUtf8(raw_data(String), len(String))
58+
Codepoint, SourceCharactersConsumed, Valid = Decode.Codepoint, Decode.SourceCharactersConsumed, Decode.Valid
59+
return
5860
}
5961

6062

@@ -92,7 +94,7 @@ FontFromMemory :: proc(Data: []byte, allocator: mem.Allocator) -> (Result: font,
9294
delete(Memory, allocator)
9395
}
9496

95-
PostReadFontInitializeFromSlice(&Result, Memory)
97+
_ = PostReadFontInitializeFromSlice(&Result, Memory)
9698
return
9799

98100
}

vendor/kb_text_shape/kb_text_shape_types.odin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,5 +1838,5 @@ decode :: struct {
18381838
Codepoint: rune,
18391839

18401840
SourceCharactersConsumed: u32,
1841-
Valid: u32,
1841+
Valid: b32,
18421842
}

0 commit comments

Comments
 (0)