mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Make halsimgui::DrawLEDs() values parameter const (#2088)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace halsimgui {
|
||||
* @param spacing spacing between each LED (both horizontal and vertical);
|
||||
* if 0, defaults to 1/3 of font size
|
||||
*/
|
||||
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 = 0.0f, float spacing = 0.0f);
|
||||
|
||||
} // namespace halsimgui
|
||||
|
||||
Reference in New Issue
Block a user