diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-06-08 21:34:34 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-06-08 21:34:34 +0200 |
| commit | f5e499105f4c46a018f9ba73aeb10757e9b99941 (patch) | |
| tree | 39310150e53e89e2edd00b1aabd4a52080b23b46 /hud | |
| parent | 6115970d1de0b600e6df526c492dad7850dfb864 (diff) | |
HudController: removed unneeded SetOpacity
(bzr r2364.3.66)
Diffstat (limited to 'hud')
| -rw-r--r-- | hud/HudController.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hud/HudController.cpp b/hud/HudController.cpp index 6e90941b0..5b391a633 100644 --- a/hud/HudController.cpp +++ b/hud/HudController.cpp @@ -396,9 +396,8 @@ void Controller::StartShowHideTimeline() { EnsureHud(); - timeline_animator_.Stop(); - double current_opacity = window_->GetOpacity(); + timeline_animator_.Stop(); timeline_animator_.Start(visible_ ? current_opacity : 1.0f - current_opacity); } @@ -408,8 +407,6 @@ void Controller::OnViewShowHideFrame(double progress) if (progress == 1.0f) { - window_->SetOpacity(visible_ ? 1.0f : 0.0f); - if (!visible_) { window_->ShowWindow(false); |
