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
0c204dcb
Commit
0c204dcb
authored
Nov 02, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CommonDisplay for msw.
parent
95c2afcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
15 deletions
+27
-15
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+24
-0
modules/video_output/msw/common.h
modules/video_output/msw/common.h
+1
-0
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+2
-15
No files found.
modules/video_output/msw/common.c
View file @
0c204dcb
...
...
@@ -207,6 +207,30 @@ void CommonManage(vout_display_t *vd)
EventThreadMouseAutoHide
(
sys
->
event
);
}
/**
* It ensures that the video window is shown after the first picture
* is displayed.
*/
void
CommonDisplay
(
vout_display_t
*
vd
)
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
if
(
!
sys
->
is_first_display
)
return
;
/* Video window is initially hidden, show it now since we got a
* picture to show.
*/
SetWindowPos
(
sys
->
hvideownd
,
0
,
0
,
0
,
0
,
0
,
SWP_ASYNCWINDOWPOS
|
SWP_FRAMECHANGED
|
SWP_SHOWWINDOW
|
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_NOZORDER
);
sys
->
is_first_display
=
false
;
}
/*****************************************************************************
* UpdateRects: update clipping rectangles
*****************************************************************************
...
...
modules/video_output/msw/common.h
View file @
0c204dcb
...
...
@@ -252,6 +252,7 @@ int CommonInit(vout_display_t *);
void
CommonClean
(
vout_display_t
*
);
void
CommonManage
(
vout_display_t
*
);
int
CommonControl
(
vout_display_t
*
,
int
,
va_list
);
void
CommonDisplay
(
vout_display_t
*
);
void
UpdateRects
(
vout_display_t
*
,
const
vout_display_cfg_t
*
,
...
...
modules/video_output/msw/direct3d.c
View file @
0c204dcb
...
...
@@ -277,27 +277,14 @@ static void Display(vout_display_t *vd, picture_t *picture)
if
(
FAILED
(
hr
))
{
msg_Dbg
(
vd
,
"%s:%d (hr=0x%0lX)"
,
__FUNCTION__
,
__LINE__
,
hr
);
}
if
(
sys
->
is_first_display
)
{
/* Video window is initially hidden, show it now since we got a
* picture to show.
*/
SetWindowPos
(
vd
->
sys
->
hvideownd
,
0
,
0
,
0
,
0
,
0
,
SWP_ASYNCWINDOWPOS
|
SWP_FRAMECHANGED
|
SWP_SHOWWINDOW
|
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_NOZORDER
);
sys
->
is_first_display
=
false
;
}
#if 0
VLC_UNUSED(picture);
#else
/* XXX See Prepare() */
picture_Release
(
picture
);
#endif
CommonDisplay
(
vd
);
}
static
int
ControlResetDevice
(
vout_display_t
*
vd
)
{
...
...
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