From e7583134174fcf86a8d3ed56bf4757f7a727574f Mon Sep 17 00:00:00 2001 From: gucio321 Date: Wed, 24 Apr 2024 18:10:41 +0200 Subject: [PATCH] fix build errors --- MasterWindow.go | 2 +- Plot.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MasterWindow.go b/MasterWindow.go index 352b5615..782e2663 100644 --- a/MasterWindow.go +++ b/MasterWindow.go @@ -80,7 +80,7 @@ func NewMasterWindow(title string, width, height int, flags MasterWindowFlags) * io := imgui.CurrentIO() // TODO: removed ConfigFlagEnablePowerSavingMode - io.SetConfigFlags(imgui.BackendFlagsRendererHasVtxOffset) + // TODO: removed io.SetConfigFlags(imgui.BackendFlagsRendererHasVtxOffset) io.SetBackendFlags(imgui.BackendFlagsRendererHasVtxOffset) // Disable imgui.ini diff --git a/Plot.go b/Plot.go index 1483bc20..3c42a2c4 100644 --- a/Plot.go +++ b/Plot.go @@ -211,7 +211,7 @@ func (p *PlotCanvasWidget) Build() { } imgui.PlotSetupAxisV( - imgui.AxisX, + imgui.AxisX1, Context.FontAtlas.RegisterString(p.xLabel), imgui.PlotAxisFlags(p.xFlags), ) @@ -340,7 +340,7 @@ func (p *BarHPlot) Plot() { int32(len(p.data)), p.height, p.shift, - imgui.PlotErrorBarsFlagsHorizontal, + imgui.PlotBarsFlagsHorizontal, int32(p.offset), 0, )