Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
0b07e057
Commit
0b07e057
authored
5 years ago
by
AndreyL ProductEngine
Committed by
Andrey Kleshchev
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Buildfix
parent
708fdb4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llviewerinput.cpp
+4
-4
4 additions, 4 deletions
indra/newview/llviewerinput.cpp
indra/newview/llviewermedia.h
+1
-1
1 addition, 1 deletion
indra/newview/llviewermedia.h
with
5 additions
and
5 deletions
indra/newview/llviewerinput.cpp
+
4
−
4
View file @
0b07e057
...
...
@@ -785,16 +785,16 @@ bool toggle_sit(EKeystate s)
bool
toggle_pause_media
(
EKeystate
s
)
// analogue of play/pause button in top bar
{
if
(
KEYSTATE_DOWN
!=
s
)
return
true
;
bool
pause
=
LLViewerMedia
::
isAnyMediaPlaying
();
LLViewerMedia
::
setAllMediaPaused
(
pause
);
bool
pause
=
LLViewerMedia
::
getInstance
()
->
isAnyMediaPlaying
();
LLViewerMedia
::
getInstance
()
->
setAllMediaPaused
(
pause
);
return
true
;
}
bool
toggle_enable_media
(
EKeystate
s
)
{
if
(
KEYSTATE_DOWN
!=
s
)
return
true
;
bool
pause
=
LLViewerMedia
::
isAnyMediaPlaying
()
||
LLViewerMedia
::
isAnyMediaShowing
();
LLViewerMedia
::
setAllMediaEnabled
(
!
pause
);
bool
pause
=
LLViewerMedia
::
getInstance
()
->
isAnyMediaPlaying
()
||
LLViewerMedia
::
getInstance
()
->
isAnyMediaShowing
();
LLViewerMedia
::
getInstance
()
->
setAllMediaEnabled
(
!
pause
);
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewermedia.h
+
1
−
1
View file @
0b07e057
...
...
@@ -79,7 +79,7 @@ class LLViewerMedia: public LLSingleton<LLViewerMedia>
public:
// String to get/set media autoplay in gSavedSettings
static
const
char
*
AUTO_PLAY_MEDIA_SETTING
;
static
const
char
*
AUTO_PLAY_MEDIA_SETTING
;
static
const
char
*
SHOW_MEDIA_ON_OTHERS_SETTING
;
static
const
char
*
SHOW_MEDIA_WITHIN_PARCEL_SETTING
;
static
const
char
*
SHOW_MEDIA_OUTSIDE_PARCEL_SETTING
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment