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
6bf3a80f
Commit
6bf3a80f
authored
Oct 14, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: add vout_display_IsWindowed() helper
parent
4bf20dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
include/vlc_vout_display.h
include/vlc_vout_display.h
+19
-0
No files found.
include/vlc_vout_display.h
View file @
6bf3a80f
...
...
@@ -405,6 +405,25 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd,
vd
->
owner
.
window_del
(
vd
,
window
);
}
static
inline
bool
vout_display_IsWindowed
(
vout_display_t
*
vd
)
{
#ifndef __cplusplus
vout_window_cfg_t
cfg
=
{
.
width
=
vd
->
cfg
->
display
.
width
,
.
height
=
vd
->
cfg
->
display
.
height
,
};
#else
vout_window_cfg_t
cfg
;
memset
(
&
cfg
,
0
,
sizeof
(
cfg
));
cfg
.
width
=
vd
->
cfg
->
display
.
width
;
cfg
.
height
=
vd
->
cfg
->
display
.
height
;
#endif
vout_window_t
*
window
=
vout_display_NewWindow
(
vd
,
&
cfg
);
if
(
window
!=
NULL
)
vout_display_DeleteWindow
(
vd
,
window
);
return
window
!=
NULL
;
}
/**
* Computes the default display size given the source and
* the display configuration.
...
...
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