Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7603d934
Commit
7603d934
authored
Aug 14, 2010
by
Sasha Koruga
Committed by
Jean-Baptiste Kempf
Aug 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes three compile warnings by casting
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3b0c9463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+3
-3
No files found.
modules/video_output/msw/direct3d.c
View file @
7603d934
...
...
@@ -514,9 +514,9 @@ static int Direct3DFillPresentationParameters(vout_display_t *vd)
d3dpp
->
Flags
=
D3DPRESENTFLAG_VIDEO
;
d3dpp
->
Windowed
=
TRUE
;
d3dpp
->
hDeviceWindow
=
vd
->
sys
->
hvideownd
;
d3dpp
->
BackBufferWidth
=
__MAX
(
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
d3dpp
->
BackBufferWidth
=
__MAX
(
(
unsigned
int
)
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
d3ddm
.
Width
);
d3dpp
->
BackBufferHeight
=
__MAX
(
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
d3dpp
->
BackBufferHeight
=
__MAX
(
(
unsigned
int
)
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
d3ddm
.
Height
);
d3dpp
->
SwapEffect
=
D3DSWAPEFFECT_COPY
;
d3dpp
->
MultiSampleType
=
D3DMULTISAMPLE_NONE
;
...
...
@@ -1069,7 +1069,7 @@ static void Direct3DRenderScene(vout_display_t *vd, LPDIRECT3DSURFACE9 surface)
/* Update the vertex buffer */
CUSTOMVERTEX
*
vertices
;
hr
=
IDirect3DVertexBuffer9_Lock
(
d3dvtc
,
0
,
0
,
&
vertices
,
D3DLOCK_DISCARD
);
hr
=
IDirect3DVertexBuffer9_Lock
(
d3dvtc
,
0
,
0
,
(
void
**
)
&
vertices
,
D3DLOCK_DISCARD
);
if
(
FAILED
(
hr
))
{
msg_Dbg
(
vd
,
"%s:%d (hr=0x%0lX)"
,
__FUNCTION__
,
__LINE__
,
hr
);
return
;
...
...
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