Skip to content

Commit

Permalink
fix(examples/paint): use SliceToPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Oct 29, 2024
1 parent 99fdb27 commit ab2ecab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/paint/toolbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io/fs"

"github.com/AllenDang/cimgui-go/imgui"
"github.com/AllenDang/cimgui-go/utils"

g "github.com/AllenDang/giu"
)
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit ab2ecab

Please sign in to comment.