Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8afa30a9
Commit
8afa30a9
authored
Apr 22, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed the volume slider bug
parent
d9ddadd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
modules/gui/skins/controls/slider.cpp
modules/gui/skins/controls/slider.cpp
+4
-2
modules/gui/skins/gtk2/gtk2_window.cpp
modules/gui/skins/gtk2/gtk2_window.cpp
+1
-2
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/vlcproc.cpp
+1
-5
No files found.
modules/gui/skins/controls/slider.cpp
View file @
8afa30a9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* slider.cpp: Slider control
* slider.cpp: Slider control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: slider.cpp,v 1.
7 2003/04/21 21:51:16
asmax Exp $
* $Id: slider.cpp,v 1.
8 2003/04/22 17:56:44
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -321,7 +321,6 @@ bool ControlSlider::MouseScroll( int x, int y, int direction )
...
@@ -321,7 +321,6 @@ bool ControlSlider::MouseScroll( int x, int y, int direction )
return
false
;
return
false
;
int
val
=
Value
;
int
val
=
Value
;
switch
(
direction
)
switch
(
direction
)
{
{
case
MOUSE_SCROLL_DOWN
:
case
MOUSE_SCROLL_DOWN
:
...
@@ -334,6 +333,9 @@ bool ControlSlider::MouseScroll( int x, int y, int direction )
...
@@ -334,6 +333,9 @@ bool ControlSlider::MouseScroll( int x, int y, int direction )
}
}
MoveCursor
(
val
);
MoveCursor
(
val
);
UpdateEvent
->
SetParam2
(
GetCursorPosition
()
);
UpdateEvent
->
SendEvent
();
return
true
;
return
true
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
...
modules/gui/skins/gtk2/gtk2_window.cpp
View file @
8afa30a9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class
* gtk2_window.cpp: GTK2 implementation of the Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.2
7 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_window.cpp,v 1.2
8 2003/04/22 17:56:44
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -176,7 +176,6 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
...
@@ -176,7 +176,6 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
gdk_window_get_pointer
(
gWnd
,
0
,
0
,
0
);
gdk_window_get_pointer
(
gWnd
,
0
,
0
,
0
);
return
true
;
return
true
;
case
GDK_BUTTON_PRESS
:
case
GDK_BUTTON_PRESS
:
// Raise all the windows
// Raise all the windows
for
(
list
<
SkinWindow
*>::
const_iterator
win
=
for
(
list
<
SkinWindow
*>::
const_iterator
win
=
...
...
modules/gui/skins/src/vlcproc.cpp
View file @
8afa30a9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
* vlcproc.cpp: VlcProc class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.1
4 2003/04/21 21:51:16
asmax Exp $
* $Id: vlcproc.cpp,v 1.1
5 2003/04/22 17:56:44
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -573,10 +573,6 @@ void VlcProc::ChangeVolume( unsigned int msg, long param )
...
@@ -573,10 +573,6 @@ void VlcProc::ChangeVolume( unsigned int msg, long param )
}
}
aout_VolumeGet
(
p_intf
,
&
volume
);
aout_VolumeGet
(
p_intf
,
&
volume
);
OSAPI_PostMessage
(
NULL
,
CTRL_SET_SLIDER
,
(
unsigned
int
)
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
Get
(
"volume_refresh"
),
(
int
)(
volume
*
SLIDER_RANGE
/
AOUT_VOLUME_MAX
)
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
...
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