Skip to content

Commit

Permalink
Clouds: match position of the BLEND knob when the module is powered on
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Gillet committed May 23, 2017
1 parent 43164ea commit 1b3b32e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clouds/cv_scaler.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ class CvScaler {
blend_knob_origin_ = previous_blend_knob_value_;
}

inline void MatchKnobPosition() {
previous_blend_knob_value_ = -1.0f;
}

inline BlendParameter blend_parameter() const {
return blend_parameter_;
}
Expand Down
1 change: 1 addition & 0 deletions clouds/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ void Ui::Init(
// Sanitize saved settings.
cv_scaler_->set_blend_parameter(
static_cast<BlendParameter>(state.blend_parameter & 3));
cv_scaler_->MatchKnobPosition();
processor_->set_quality(state.quality & 3);
processor_->set_playback_mode(
static_cast<PlaybackMode>(state.playback_mode & 3));
Expand Down

0 comments on commit 1b3b32e

Please sign in to comment.