Skip to content

Commit

Permalink
CSS: use changes from AllenDang#555 to simplify code in MasterWindow.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 11, 2022
1 parent 326785b commit 8e7a027
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,9 @@ func (w *MasterWindow) render() {
r.PreRender(w.clearColor)

imgui.NewFrame()
mainStylesheet.To(
Custom(func() {
w.updateFunc()
}),
).Build()
mainStylesheet.Push()
w.updateFunc()
mainStylesheet.Pop()
imgui.Render()

r.Render(p.DisplaySize(), p.FramebufferSize(), imgui.RenderedDrawData())
Expand Down

0 comments on commit 8e7a027

Please sign in to comment.