Make halsimgui::DrawLEDs() values parameter const (#2088)

This commit is contained in:
Peter Johnson
2019-11-15 20:29:51 -08:00
committed by GitHub
parent 841ef91c0f
commit 5d39bf8065
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
namespace halsimgui {
void DrawLEDs(int* values, int numValues, int cols, const ImU32* colors,
void DrawLEDs(const int* values, int numValues, int cols, const ImU32* colors,
float size, float spacing) {
if (numValues == 0) return;
if (size == 0) size = ImGui::GetFontSize() / 2.0;