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
a0a1a207
Commit
a0a1a207
authored
Oct 15, 2008
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculate position for videowindow to use current screen in xinerama-setup also.
Basicly same as mplayer/libvo/x11_common.c does.
parent
70c75214
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
6 deletions
+54
-6
modules/video_output/x11/glx.c
modules/video_output/x11/glx.c
+1
-1
modules/video_output/x11/x11.c
modules/video_output/x11/x11.c
+1
-1
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+50
-2
modules/video_output/x11/xvideo.c
modules/video_output/x11/xvideo.c
+1
-1
modules/video_output/x11/xvmc.c
modules/video_output/x11/xvmc.c
+1
-1
No files found.
modules/video_output/x11/glx.c
View file @
a0a1a207
...
...
@@ -130,7 +130,7 @@ vlc_module_begin();
add_bool
(
"glx-shm"
,
1
,
NULL
,
SHM_TEXT
,
SHM_LONGTEXT
,
true
);
#endif
#ifdef HAVE_XINERAMA
add_integer
(
"glx-xineramascreen"
,
0
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
add_integer
(
"glx-xineramascreen"
,
-
1
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
#endif
vlc_module_end
();
...
...
modules/video_output/x11/x11.c
View file @
a0a1a207
...
...
@@ -76,7 +76,7 @@ vlc_module_begin();
add_bool
(
"x11-shm"
,
1
,
NULL
,
SHM_TEXT
,
SHM_LONGTEXT
,
true
);
#endif
#ifdef HAVE_XINERAMA
add_integer
(
"x11-xineramascreen"
,
0
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
add_integer
(
"x11-xineramascreen"
,
-
1
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
#endif
set_description
(
N_
(
"X11 video output"
)
);
set_capability
(
"video output"
,
70
);
...
...
modules/video_output/x11/xcommon.c
View file @
a0a1a207
...
...
@@ -2094,6 +2094,39 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
{
msg_Dbg
(
p_vout
,
"entering fullscreen mode"
);
/* Getting current window position */
Window
root_win
;
Window
*
child_windows
;
int
num_child_windows
;
Window
parent_win
;
Window
child_win
;
XWindowAttributes
win_attr
;
int
screen_x
,
screen_y
;
XGetWindowAttributes
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
p_win
->
video_window
,
&
win_attr
);
XQueryTree
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
p_win
->
video_window
,
&
root_win
,
&
parent_win
,
&
child_windows
,
&
num_child_windows
);
XFree
(
child_windows
);
XTranslateCoordinates
(
p_vout
->
p_sys
->
p_display
,
parent_win
,
win_attr
.
root
,
win_attr
.
x
,
win_attr
.
y
,
&
screen_x
,
&
screen_y
,
&
child_win
);
msg_Dbg
(
p_vout
,
"X %d/%d Y %d/%d"
,
win_attr
.
x
,
screen_x
,
win_attr
.
y
,
screen_y
);
/* screen_x and screen_y are current position */
p_vout
->
p_sys
->
b_altfullscreen
=
config_GetInt
(
p_vout
,
MODULE_STRING
"-altfullscreen"
);
...
...
@@ -2190,11 +2223,26 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
SCREEN
=
config_GetInt
(
p_vout
,
MODULE_STRING
"-xineramascreen"
);
/* just check that user has entered a good value */
/* just check that user has entered a good value,
* otherwise use that screen where window is */
if
(
SCREEN
>=
i_num_screens
||
SCREEN
<
0
)
{
msg_Dbg
(
p_vout
,
"requested screen number invalid (%d/%d)"
,
SCREEN
,
i_num_screens
);
SCREEN
=
0
;
#define left screens[SCREEN].x_org
#define right left + screens[SCREEN].width
#define top screens[SCREEN].y_org
#define bottom top + screens[SCREEN].height
for
(
SCREEN
=
i_num_screens
-
1
;
SCREEN
>
0
;
SCREEN
--
)
{
if
(
left
<=
screen_x
&&
screen_x
<=
right
&&
top
<=
screen_y
&&
screen_y
<=
bottom
)
break
;
}
#undef bottom
#undef top
#undef right
#undef left
}
/* Get the X/Y upper left corner coordinate of the above screen */
...
...
modules/video_output/x11/xvideo.c
View file @
a0a1a207
...
...
@@ -89,7 +89,7 @@ vlc_module_begin();
add_bool
(
"xvideo-shm"
,
1
,
NULL
,
SHM_TEXT
,
SHM_LONGTEXT
,
true
);
#endif
#ifdef HAVE_XINERAMA
add_integer
(
"xvideo-xineramascreen"
,
0
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
add_integer
(
"xvideo-xineramascreen"
,
-
1
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
#endif
set_description
(
N_
(
"XVideo extension video output"
)
);
...
...
modules/video_output/x11/xvmc.c
View file @
a0a1a207
...
...
@@ -143,7 +143,7 @@ vlc_module_begin();
add_bool
(
"xvmc-shm"
,
1
,
NULL
,
SHM_TEXT
,
SHM_LONGTEXT
,
true
);
#endif
#ifdef HAVE_XINERAMA
add_integer
(
"xvmc-xineramascreen"
,
0
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
add_integer
(
"xvmc-xineramascreen"
,
-
1
,
NULL
,
SCREEN_TEXT
,
SCREEN_LONGTEXT
,
true
);
#endif
add_string
(
"xvmc-deinterlace-mode"
,
"bob"
,
NULL
,
MODE_TEXT
,
MODE_LONGTEXT
,
false
);
add_string
(
"xvmc-crop-style"
,
"eq"
,
NULL
,
CROP_TEXT
,
CROP_LONGTEXT
,
false
);
...
...
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