From ab2ecab0d027617cab4edab6e6d3a6c34c568f9c Mon Sep 17 00:00:00 2001 From: gucio321 Date: Tue, 29 Oct 2024 13:09:22 +0100 Subject: [PATCH] fix(examples/paint): use SliceToPtr --- examples/paint/toolbar.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/paint/toolbar.go b/examples/paint/toolbar.go index 01a808ff..726d654a 100644 --- a/examples/paint/toolbar.go +++ b/examples/paint/toolbar.go @@ -7,6 +7,7 @@ import ( "io/fs" "github.com/AllenDang/cimgui-go/imgui" + "github.com/AllenDang/cimgui-go/utils" g "github.com/AllenDang/giu" ) @@ -112,7 +113,7 @@ func colorPopup(ce *color.RGBA, fe g.ColorEditFlags) { g.Context.FontAtlas.RegisterString("##COLOR_POPUP##me"), &col, imgui.ColorEditFlags(fe), - refCol, + utils.SliceToPtr(refCol), ) { *ce = g.Vec4ToRGBA(imgui.Vec4{ X: col[0],