Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
c4efd024
Commit
c4efd024
authored
Aug 25, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting to revision 12383 to 12340. This make wxwidgets 2.6.1 work but breaks older versions.
parent
98b9533c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/gui/wxwidgets/interface.cpp
modules/gui/wxwidgets/interface.cpp
+6
-7
No files found.
modules/gui/wxwidgets/interface.cpp
View file @
c4efd024
...
...
@@ -89,7 +89,7 @@ public:
void
OnChange
(
wxMouseEvent
&
event
);
void
UpdateVolume
();
private:
private:
DECLARE_EVENT_TABLE
()
wxVolCtrl
*
gauge
;
...
...
@@ -99,7 +99,7 @@ private:
};
BEGIN_EVENT_TABLE
(
VLCVolCtrl
,
wxControl
)
EVT_PAINT
(
VLCVolCtrl
::
OnPaint
)
EVT_PAINT
(
VLCVolCtrl
::
OnPaint
)
/* Mouse events */
EVT_LEFT_UP
(
VLCVolCtrl
::
OnChange
)
...
...
@@ -1426,11 +1426,13 @@ void wxVolCtrl::UpdateVolume()
{
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
int
i_gauge_volume
=
i_volume
*
200
*
2
/
AOUT_VOLUME_MAX
;
if
(
i_gauge_volume
==
GetValue
()
)
return
;
SetValue
(
i_gauge_volume
);
SetToolTip
(
wxString
::
Format
((
wxString
)
wxU
(
_
(
"Volume"
))
+
wxT
(
" %d"
),
i_gauge_volume
/
2
)
);
}
#if defined(__WXGTK__)
...
...
@@ -1472,9 +1474,6 @@ void VLCVolCtrl::UpdateVolume()
gauge
->
UpdateVolume
();
int
i_volume
=
gauge
->
GetValue
();
wxWindow
::
SetToolTip
(
(
wxString
)
wxU
(
_
(
"Volume"
))
+
wxString
::
Format
(
wxT
(
" %d"
),
i_volume
/
2
)
);
if
(
!!
i_volume
==
!
b_mute
)
return
;
b_mute
=
!
b_mute
;
Refresh
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment