Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1c35540e
Commit
1c35540e
authored
Jun 05, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added mouse coordinates to vout struct. They are only update from x11 for now,
and they are used nowhere.
parent
1aa0aa39
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
include/video_output.h
include/video_output.h
+4
-1
plugins/x11/xcommon.c
plugins/x11/xcommon.c
+12
-1
src/video_output/video_output.c
src/video_output/video_output.c
+5
-1
No files found.
include/video_output.h
View file @
1c35540e
...
...
@@ -5,7 +5,7 @@
* thread, and destroy a previously opened video output thread.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_output.h,v 1.7
7 2002/06/01 18:04:48 sam
Exp $
* $Id: video_output.h,v 1.7
8 2002/06/05 18:07:03 stef
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -135,6 +135,9 @@ struct vout_thread_s
mtime_t
display_jitter
;
/* average deviation from the PTS */
count_t
c_jitter_samples
;
/* number of samples used for the *
* calculation of the jitter */
int
i_mouse_x
,
i_mouse_y
,
i_mouse_button
;
};
#define I_OUTPUTPICTURES p_vout->output.i_pictures
...
...
plugins/x11/xcommon.c
View file @
1c35540e
...
...
@@ -2,7 +2,7 @@
* xcommon.c: Functions common to the X11 and XVideo plugins
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: xcommon.c,v 1.
39 2002/06/04 00:11:12 sam
Exp $
* $Id: xcommon.c,v 1.
40 2002/06/05 18:07:03 stef
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -721,6 +721,12 @@ static int vout_Manage( vout_thread_t *p_vout )
/* Mouse click */
else
if
(
xevent
.
type
==
ButtonPress
)
{
p_vout
->
i_mouse_x
=
(
int
)(
(
float
)
xevent
.
xmotion
.
x
/
p_vout
->
p_sys
->
i_width
*
p_vout
->
render
.
i_width
);
p_vout
->
i_mouse_y
=
(
int
)(
(
float
)
xevent
.
xmotion
.
y
/
p_vout
->
p_sys
->
i_height
*
p_vout
->
render
.
i_height
);
p_vout
->
i_mouse_button
=
1
;
switch
(
((
XButtonEvent
*
)
&
xevent
)
->
button
)
{
case
Button1
:
...
...
@@ -774,6 +780,11 @@ static int vout_Manage( vout_thread_t *p_vout )
{
ToggleCursor
(
p_vout
);
}
p_vout
->
i_mouse_x
=
(
int
)(
(
float
)
xevent
.
xmotion
.
x
/
p_vout
->
p_sys
->
i_width
*
p_vout
->
render
.
i_width
);
p_vout
->
i_mouse_y
=
(
int
)(
(
float
)
xevent
.
xmotion
.
y
/
p_vout
->
p_sys
->
i_height
*
p_vout
->
render
.
i_height
);
}
/* Reparent move -- XXX: why are we getting this ? */
else
if
(
xevent
.
type
==
ReparentNotify
)
...
...
src/video_output/video_output.c
View file @
1c35540e
...
...
@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: video_output.c,v 1.18
3 2002/06/02 09:03:54 sam
Exp $
* $Id: video_output.c,v 1.18
4 2002/06/05 18:07:03 stef
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -133,6 +133,10 @@ vout_thread_t * __vout_CreateThread ( vlc_object_t *p_parent,
p_vout
->
render_time
=
10
;
p_vout
->
c_fps_samples
=
0
;
p_vout
->
i_mouse_x
=
0
;
p_vout
->
i_mouse_y
=
0
;
p_vout
->
i_mouse_button
=
0
;
/* user requested fullscreen? */
if
(
config_GetInt
(
p_vout
,
"fullscreen"
)
)
{
...
...
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