diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-04-04 14:08:09 +0800 | 
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-04-04 14:08:09 +0800 | 
| commit | a778141851f8745908f104c5be376e1e4391cead (patch) | |
| tree | 6a426a1c5d89846ef677d307923f601e891ec572 | |
| parent | cddbaf2236c57499d371d61affad7efabdf7b377 (diff) | |
DecorationsWindowButton: don't get texture multiple times
(bzr r4213.4.17)
| -rw-r--r-- | decorations/DecorationsWindowButton.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/decorations/DecorationsWindowButton.cpp b/decorations/DecorationsWindowButton.cpp index c7bbbb73b..4a0302d58 100644 --- a/decorations/DecorationsWindowButton.cpp +++ b/decorations/DecorationsWindowButton.cpp @@ -46,7 +46,7 @@ WindowButton::WindowButton(CompWindow* win, WindowButtonType wbt)  void WindowButton::UpdateTexture()  {  if (auto tex = DataPool::Get()->ButtonTexture(scale(), type(), GetCurrentState())) - SetTexture(DataPool::Get()->ButtonTexture(scale(), type(), GetCurrentState())); + SetTexture(tex);  }  WidgetState WindowButton::GetCurrentState() const | 
