From 72cf0243475ecd0a1580afa01b51a61e8918a262 Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Sun, 27 Jun 2021 12:12:07 -0700 Subject: [PATCH] meh --- implot_items.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implot_items.cpp b/implot_items.cpp index 7441066..928526b 100644 --- a/implot_items.cpp +++ b/implot_items.cpp @@ -1899,11 +1899,11 @@ void RenderHeatmap(Transformer transformer, ImDrawList& DrawList, const T* value ImPlotScale scale = GetCurrentScale(); // NOTE: Order is important! - Backend::RenderHeatmap(gp.CurrentItem->ID, DrawList, bmin, bmax, scale_min, scale_max, gp.Style.Colormap); + Backend::RenderHeatmap(gp.CurrentItem->ID, DrawList, bmin, bmax, (float)scale_min, (float)scale_max, gp.Style.Colormap); Backend::SetAxisLog(gp.CurrentItem->ID, scale == ImPlotScale_LogLin || scale == ImPlotScale_LogLog, scale == ImPlotScale_LinLog || scale == ImPlotScale_LogLog, - ImVec2(bounds_min.x, bounds_min.y), ImVec2(bounds_max.x, bounds_max.y)); + ImVec2((float)bounds_min.x, (float)bounds_min.y), ImVec2((float)bounds_max.x, (float)bounds_max.y)); Backend::SetHeatmapData(gp.CurrentItem->ID, values, rows, cols); #else GetterHeatmap getter(values, rows, cols, scale_min, scale_max, (bounds_max.x - bounds_min.x) / cols, (bounds_max.y - bounds_min.y) / rows, bounds_min.x, yref, ydir);