diff options
| author | Paul Guslisty <pguslisty@productengine.com> | 2010-03-26 09:47:42 +0200 |
|---|---|---|
| committer | Paul Guslisty <pguslisty@productengine.com> | 2010-03-26 09:47:42 +0200 |
| commit | 4d8338ff3eb91b7185b347b4c538ae20ff7940ce (patch) | |
| tree | c77d23ae4290e22c6a2b071a1f99fe76a9f4051e /indra/newview/llfloatermap.cpp | |
| parent | 5fbcc249e3af8e8cd1edabf7a4b6e4c9ca0fc7e3 (diff) | |
Fixen normal EXT-6434 (Mini Map does not go transparent when not in focus)
- Set background opaque of the floater depending on focus and made map's background color transparent
Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/99/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llfloatermap.cpp')
| -rw-r--r-- | indra/newview/llfloatermap.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llfloatermap.cpp b/indra/newview/llfloatermap.cpp index 051ab585e2..ccf286c4cc 100644 --- a/indra/newview/llfloatermap.cpp +++ b/indra/newview/llfloatermap.cpp @@ -215,6 +215,20 @@ void LLFloaterMap::draw() LLFloater::draw(); } +// virtual +void LLFloaterMap::onFocusReceived() +{ + setBackgroundOpaque(true); + LLPanel::onFocusReceived(); +} + +// virtual +void LLFloaterMap::onFocusLost() +{ + setBackgroundOpaque(false); + LLPanel::onFocusLost(); +} + void LLFloaterMap::reshape(S32 width, S32 height, BOOL called_from_parent) { LLFloater::reshape(width, height, called_from_parent); |
