From 8fca198dfe4e0fb3cc455a303e75f3896b18b0c1 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 23 Jan 2022 03:23:49 -0500 Subject: [PATCH] Fix initial angle of PlugWidget. --- CHANGELOG.md | 1 + src/app/CableWidget.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a494516f..11fb9914 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ In this document, Ctrl means Cmd on Mac. ### 2.1.0 () - Update to RtMidi 5.0.0. - Update to RtAudio 5.2.0. +- Fix plug graphic sometimes being incorrectly rotated. - Core - Add "Pitch bend range" setting to MIDI to CV module. - Fix MIDI to CV incorrectly setting pitch wheel and mod wheel outputs in MPE mode. diff --git a/src/app/CableWidget.cpp b/src/app/CableWidget.cpp index b552ffef..ce6e5227 100644 --- a/src/app/CableWidget.cpp +++ b/src/app/CableWidget.cpp @@ -34,7 +34,7 @@ struct PlugLight : componentlibrary::TRedGreenBlueLight { struct PlugWidget : widget::Widget { - float angle = 0.f; + float angle = 0.5f * M_PI; PortWidget* portWidget = NULL; widget::FramebufferWidget* fb;