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
970109d8
Commit
970109d8
authored
May 04, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- wxwidgets: slider tweaks completed, needs testing
parent
263c385c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/gui/wxwidgets/input_manager.cpp
modules/gui/wxwidgets/input_manager.cpp
+7
-6
No files found.
modules/gui/wxwidgets/input_manager.cpp
View file @
970109d8
...
...
@@ -58,7 +58,7 @@ END_EVENT_TABLE()
#define STATUS_PLAYING 1
#define STATUS_PAUSE 2
#if WIN32
#if
def
WIN32
#include <commctrl.h>
...
...
@@ -84,16 +84,17 @@ static LRESULT CALLBACK MovieSliderWindowProc(HWND hWnd, UINT uMsg, WPARAM wPara
{
LONG
min
=
SendMessage
(
hWnd
,
TBM_GETRANGEMIN
,
0
,
0
);
LONG
max
=
SendMessage
(
hWnd
,
TBM_GETRANGEMAX
,
0
,
0
);
LONG
thumb
=
SendMessage
(
hWnd
,
TBM_GETTHUMBLENGTH
,
0
,
0
);
;
LONG
thumb
=
tRect
.
right
-
tRect
.
left
;
LONG
newpos
;
SendMessage
(
hWnd
,
TBM_GETCHANNELRECT
,
0
,
(
LPARAM
)
&
tRect
);
/* following is only valid for horizontal trackbar */
newpos
=
((
click
.
x
-
tRect
.
left
-
(
thumb
/
2
))
*
(
max
-
min
)
+
((
tRect
.
right
-
tRect
.
left
-
thumb
)
/
2
))
/
(
tRect
.
right
-
tRect
.
left
-
thumb
);
/* following is only valid for horizontal a trackbar */
newpos
=
((
click
.
x
-
tRect
.
left
-
(
thumb
/
2
))
*
(
max
-
min
)
+
((
tRect
.
right
-
tRect
.
left
-
thumb
)
/
2
))
/
(
tRect
.
right
-
tRect
.
left
-
thumb
);
/* set new postion */
SendMessage
(
hWnd
,
TBM_SETPOS
,
TRUE
,
newpos
);
SendMessage
(
hWnd
,
TBM_SETPOS
,
TRUE
,
min
+
newpos
);
/* notify parent of change */
SendMessage
(
GetParent
(
hWnd
),
WM_HSCROLL
,
TB_ENDTRACK
,
(
LPARAM
)
hWnd
);
...
...
@@ -127,7 +128,7 @@ InputManager::InputManager( intf_thread_t *_p_intf, Interface *_p_main_intf,
/* Create slider */
slider
=
new
wxSlider
(
this
,
SliderScroll_Event
,
0
,
0
,
SLIDER_MAX_POS
);
#if WIN32
#if
def
WIN32
/* modify behaviour of WIN32 underlying control
in order to implement proper movie slider */
{
...
...
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