diff --git a/examples/raylib-sidebar-scrolling-container/src/main.zig b/examples/raylib-sidebar-scrolling-container/src/main.zig index 5263f16..3858111 100644 --- a/examples/raylib-sidebar-scrolling-container/src/main.zig +++ b/examples/raylib-sidebar-scrolling-container/src/main.zig @@ -67,7 +67,7 @@ fn createLayout(profile_picture: *const rl.Texture2D) cl.ClayArray(cl.RenderComm cl.imageConfig(.{ .source_dimensions = .{ .h = 60, .w = 60 }, .image_data = @ptrCast(@constCast(profile_picture)) }), ); cl.closeParent(); - cl.text(cl.ID("profileTitle"), "Clay - UI Library", cl.textConfig(.{ .font_size = 24, .text_color = light_grey })); + cl.text(cl.ID("profileTitle"), "Clay - UI Library", cl.textConfig(.{ .font_size = 24, .color = light_grey })); } for (0..5) |i| { diff --git a/examples/raylib-sidebar-scrolling-container/src/raylib_render_clay.zig b/examples/raylib-sidebar-scrolling-container/src/raylib_render_clay.zig index fd3be76..a30f61a 100644 --- a/examples/raylib-sidebar-scrolling-container/src/raylib_render_clay.zig +++ b/examples/raylib-sidebar-scrolling-container/src/raylib_render_clay.zig @@ -26,7 +26,7 @@ pub fn clayRaylibRender(render_commands: *cl.ClayArray(cl.RenderCommand), alloca const cloned = allocator.dupeZ(c_char, text) catch unreachable; defer allocator.free(cloned); const fontToUse: rl.Font = raylib_fonts[render_command.config.text_element_config.font_id].?; - rl.setTextLineSpacing(render_command.config.text_element_config.lineSpacing); + rl.setTextLineSpacing(render_command.config.text_element_config.line_spacing); rl.drawTextEx( fontToUse, @ptrCast(@alignCast(cloned.ptr)), @@ -190,7 +190,7 @@ pub fn measureText(clay_text: []const u8, config: *cl.TextElementConfig) cl.Dime const text: []const u8 = clay_text; const font_size: f32 = @floatFromInt(config.font_size); const letter_spacing: f32 = @floatFromInt(config.letter_spacing); - const line_spacing = config.lineSpacing; + const line_spacing = config.line_spacing; var temp_byte_counter: usize = 0; var byte_counter: usize = 0;