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
f2d0e53b
Commit
f2d0e53b
authored
Dec 21, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allocated a direct3d back buffer as large as the whole virtual screen.
It will allow to resize the video on multiple monitors.
parent
0a38e415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+4
-11
No files found.
modules/video_output/msw/direct3d.c
View file @
f2d0e53b
...
...
@@ -515,8 +515,10 @@ static int Direct3DFillPresentationParameters(vout_display_t *vd)
d3dpp
->
Flags
=
D3DPRESENTFLAG_VIDEO
;
d3dpp
->
Windowed
=
TRUE
;
d3dpp
->
hDeviceWindow
=
vd
->
sys
->
hvideownd
;
d3dpp
->
BackBufferWidth
=
d3ddm
.
Width
;
d3dpp
->
BackBufferHeight
=
d3ddm
.
Height
;
d3dpp
->
BackBufferWidth
=
__MAX
(
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
d3ddm
.
Width
);
d3dpp
->
BackBufferHeight
=
__MAX
(
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
d3ddm
.
Height
);
d3dpp
->
SwapEffect
=
D3DSWAPEFFECT_COPY
;
d3dpp
->
MultiSampleType
=
D3DMULTISAMPLE_NONE
;
d3dpp
->
PresentationInterval
=
D3DPRESENT_INTERVAL_DEFAULT
;
...
...
@@ -524,15 +526,6 @@ static int Direct3DFillPresentationParameters(vout_display_t *vd)
d3dpp
->
BackBufferCount
=
1
;
d3dpp
->
EnableAutoDepthStencil
=
FALSE
;
const
unsigned
adapter_count
=
IDirect3D9_GetAdapterCount
(
sys
->
d3dobj
);
for
(
unsigned
i
=
1
;
i
<
adapter_count
;
i
++
)
{
hr
=
IDirect3D9_GetAdapterDisplayMode
(
sys
->
d3dobj
,
i
,
&
d3ddm
);
if
(
FAILED
(
hr
))
continue
;
d3dpp
->
BackBufferWidth
=
__MAX
(
d3dpp
->
BackBufferWidth
,
d3ddm
.
Width
);
d3dpp
->
BackBufferHeight
=
__MAX
(
d3dpp
->
BackBufferHeight
,
d3ddm
.
Height
);
}
/* */
RECT
*
display
=
&
vd
->
sys
->
rect_display
;
display
->
left
=
0
;
...
...
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