Skip to content

Commit

Permalink
precompute canvas at undo level to avoid blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbrigato committed Sep 30, 2024
1 parent 9963037 commit 5f49f7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/paint/toolbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func ButtonColorMaker() *g.RowWidget {
canvas, _ = NewCanvas(canvasDetectedHeight)
canvas.UndoIndexes = uind
canvas.DrawCommands = dc
canvas.Compute()
}
}
imgui.SameLine()
Expand Down

0 comments on commit 5f49f7a

Please sign in to comment.