diff --git a/cmd/streamdeck/display_exec.go b/cmd/streamdeck/display_exec.go index 3e556f8..f1c38d3 100644 --- a/cmd/streamdeck/display_exec.go +++ b/cmd/streamdeck/display_exec.go @@ -102,12 +102,12 @@ func (d displayElementExec) Display(ctx context.Context, idx int, attributes map tmpCol := color.RGBA{} - for idx, vp := range []*uint8{&tmpCol.R, &tmpCol.G, &tmpCol.B, &tmpCol.A} { - switch rgba[idx].(type) { + for cidx, vp := range []*uint8{&tmpCol.R, &tmpCol.G, &tmpCol.B, &tmpCol.A} { + switch rgba[cidx].(type) { case int: - *vp = uint8(rgba[idx].(int)) + *vp = uint8(rgba[cidx].(int)) case float64: - *vp = uint8(rgba[idx].(float64)) + *vp = uint8(rgba[cidx].(float64)) } }