From b772e3c3a06d642b177992fa67e993f3b9c99f0c Mon Sep 17 00:00:00 2001 From: jack Date: Thu, 9 Oct 2025 23:05:31 +0800 Subject: [PATCH 1/2] Fix DrawList methods --- src/zgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zgui.cpp b/src/zgui.cpp index 5ac98e4..281b168 100644 --- a/src/zgui.cpp +++ b/src/zgui.cpp @@ -2529,7 +2529,7 @@ extern "C" ZGUI_API void zguiDrawList_AddImage( ImDrawList *draw_list, - ImTextureID user_texture_id, + ImTextureRef user_texture_id, const float pmin[2], const float pmax[2], const float uvmin[2], @@ -2547,7 +2547,7 @@ extern "C" ZGUI_API void zguiDrawList_AddImageQuad( ImDrawList *draw_list, - ImTextureID user_texture_id, + ImTextureRef user_texture_id, const float p1[2], const float p2[2], const float p3[2], @@ -2573,7 +2573,7 @@ extern "C" ZGUI_API void zguiDrawList_AddImageRounded( ImDrawList *draw_list, - ImTextureID user_texture_id, + ImTextureRef user_texture_id, const float pmin[2], const float pmax[2], const float uvmin[2], From 163407a95e865762afcc9fe5fd9463c9f5721b68 Mon Sep 17 00:00:00 2001 From: jack Date: Fri, 10 Oct 2025 20:37:20 +0800 Subject: [PATCH 2/2] Allow null pointer when changing font size --- src/gui.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui.zig b/src/gui.zig index b12e5fd..bc9f6ee 100644 --- a/src/gui.zig +++ b/src/gui.zig @@ -1393,9 +1393,9 @@ extern fn zguiGetFont() Font; /// `pub fn getFontSize() f32` pub const getFontSize = zguiGetFontSize; extern fn zguiGetFontSize() f32; -/// `void pushFont(font: Font, font_size_base_unscaled: f32) void` +/// `void pushFont(font: ?Font, font_size_base_unscaled: f32) void` pub const pushFont = zguiPushFont; -extern fn zguiPushFont(font: Font, font_size_base_unscaled: f32) void; +extern fn zguiPushFont(font: ?Font, font_size_base_unscaled: f32) void; /// `void popFont() void` pub const popFont = zguiPopFont; extern fn zguiPopFont() void;