diff options
author | David Seikel | 2011-03-20 17:02:40 +1000 |
---|---|---|
committer | David Seikel | 2011-03-20 17:02:40 +1000 |
commit | 8c15fcec590c68337b8aa05d17793cd3c2a48068 (patch) | |
tree | e233ecfa79c6fe22f47dc0eba44c0300dc0daa71 /linden/indra/newview/llfloaterimagepreview.cpp | |
parent | The half arsed IRC support was broken. It's still not working, though it wor... (diff) | |
parent | Merge remote-tracking branch 'jacek/exp' into exp (diff) | |
download | meta-impy-8c15fcec590c68337b8aa05d17793cd3c2a48068.zip meta-impy-8c15fcec590c68337b8aa05d17793cd3c2a48068.tar.gz meta-impy-8c15fcec590c68337b8aa05d17793cd3c2a48068.tar.bz2 meta-impy-8c15fcec590c68337b8aa05d17793cd3c2a48068.tar.xz |
Merge remote-tracking branch 'mccabe/exp' into weekly
Conflicts: (Keeping these around as a record, there was some strangeness.
.gitignore
linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp
linden/indra/newview/llfloaterregioninfo.cpp
linden/indra/newview/llfloatertos.cpp
linden/indra/newview/llpanellogin.cpp
linden/indra/newview/skins/default/html/en-us/loading-error/index.html
linden/indra/newview/skins/default/html/en-us/loading/loading.html
linden/indra/newview/skins/default/xui/en-us/floater_about.xml
linden/install.xml
Diffstat (limited to 'linden/indra/newview/llfloaterimagepreview.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterimagepreview.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterimagepreview.cpp b/linden/indra/newview/llfloaterimagepreview.cpp index aa8a94f..e792f8c 100644 --- a/linden/indra/newview/llfloaterimagepreview.cpp +++ b/linden/indra/newview/llfloaterimagepreview.cpp | |||
@@ -616,6 +616,22 @@ BOOL LLFloaterImagePreview::handleScrollWheel(S32 x, S32 y, S32 clicks) | |||
616 | return TRUE; | 616 | return TRUE; |
617 | } | 617 | } |
618 | 618 | ||
619 | BOOL LLFloaterImagePreview::handleHScrollWheel(S32 x, S32 y, S32 clicks) | ||
620 | { | ||
621 | const F32 RAD_PER_CLICK = -F_PI / 16.0f; | ||
622 | |||
623 | if (mPreviewRect.pointInRect(x, y) && mAvatarPreview) | ||
624 | { | ||
625 | mAvatarPreview->rotate(RAD_PER_CLICK * clicks, 0); | ||
626 | mAvatarPreview->refresh(); | ||
627 | |||
628 | mSculptedPreview->rotate(RAD_PER_CLICK * clicks, 0); | ||
629 | mSculptedPreview->refresh(); | ||
630 | } | ||
631 | |||
632 | return TRUE; | ||
633 | } | ||
634 | |||
619 | //----------------------------------------------------------------------------- | 635 | //----------------------------------------------------------------------------- |
620 | // onMouseCaptureLost() | 636 | // onMouseCaptureLost() |
621 | //----------------------------------------------------------------------------- | 637 | //----------------------------------------------------------------------------- |