Fix analog resize

This commit is contained in:
iota97 2021-10-24 20:33:24 +02:00
parent 59f3d4b8f5
commit 5adaf87dbe

View File

@ -301,7 +301,7 @@ public:
dc.Draw()->DrawImage(stickImage, bounds_.centerX(), bounds_.centerY(), scale_ * spacing_, colorBg, ALIGN_CENTER);
}
float GetSpacing() const override { return spacing_; }
float GetSpacing() const override { return spacing_ * 3; }
void SetSpacing(float s) override {
// In mapping spacing is clamped between 0.5 and 3.0 and passed to this method
spacing_ = s/3;