From 55453f8e45e450de0d2591d5bc618bc206a3459f Mon Sep 17 00:00:00 2001 From: Matt Breckon Date: Sun, 24 Aug 2025 12:11:29 +0100 Subject: [PATCH] Fix typos and remove code that came from another example renderer --- .../examples/clay-official-website/clay_renderer_raylib.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/odin/examples/clay-official-website/clay_renderer_raylib.odin b/bindings/odin/examples/clay-official-website/clay_renderer_raylib.odin index e6877c4..c3b4550 100644 --- a/bindings/odin/examples/clay-official-website/clay_renderer_raylib.odin +++ b/bindings/odin/examples/clay-official-website/clay_renderer_raylib.odin @@ -25,13 +25,13 @@ measure_text :: proc "c" (text: clay.StringSlice, config: ^clay.TextElementConfi for byte_index < int(text.length) { // handle utf-8 codepoints codepoint_bytes: i32 = 0 - codepoint := raylib.GetCodepoint( + codepoint := rl.GetCodepoint( transmute(cstring)&text.chars[byte_index], &codepoint_bytes, ) byte_index += int(codepoint_bytes) - glyph_index := raylib.GetGlyphIndex(fontToUse, codepoint) + glyph_index := rl.GetGlyphIndex(font, codepoint) glyph := font.glyphs[glyph_index] if glyph.advanceX != 0 {