Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3ccac1a7
Commit
3ccac1a7
authored
Apr 14, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Update the backbuffer D3DPRESENT_PARAMETERS after a successful reset.
parent
c78312ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
device.c
dlls/d3d9/device.c
+13
-0
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+3
-3
device.c
dlls/d3d9/tests/device.c
+3
-3
No files found.
dlls/d3d9/device.c
View file @
3ccac1a7
...
...
@@ -667,9 +667,22 @@ static HRESULT d3d9_device_reset(struct d3d9_device *device,
wined3d_swapchain_desc_from_present_parameters
(
&
swapchain_desc
,
present_parameters
);
if
(
SUCCEEDED
(
hr
=
wined3d_device_reset
(
device
->
wined3d_device
,
&
swapchain_desc
,
mode
?
&
wined3d_mode
:
NULL
,
reset_enum_callback
,
!
device
->
d3d_parent
->
extended
)))
{
struct
wined3d_swapchain
*
wined3d_swapchain
;
wined3d_swapchain
=
wined3d_device_get_swapchain
(
device
->
wined3d_device
,
0
);
wined3d_swapchain_get_desc
(
wined3d_swapchain
,
&
swapchain_desc
);
present_parameters
->
BackBufferWidth
=
swapchain_desc
.
backbuffer_width
;
present_parameters
->
BackBufferHeight
=
swapchain_desc
.
backbuffer_height
;
present_parameters
->
BackBufferFormat
=
d3dformat_from_wined3dformat
(
swapchain_desc
.
backbuffer_format
);
present_parameters
->
BackBufferCount
=
swapchain_desc
.
backbuffer_count
;
device
->
device_state
=
D3D9_DEVICE_STATE_OK
;
}
else
if
(
!
device
->
d3d_parent
->
extended
)
{
device
->
device_state
=
D3D9_DEVICE_STATE_NOT_RESET
;
}
wined3d_mutex_unlock
();
...
...
dlls/d3d9/tests/d3d9ex.c
View file @
3ccac1a7
...
...
@@ -1062,11 +1062,11 @@ static void test_reset(void)
hr
=
IDirect3DDevice9Ex_TestCooperativeLevel
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected cooperative level %#x.
\n
"
,
hr
);
todo_wine
ok
(
d3dpp
.
BackBufferWidth
==
200
,
"Got unexpected BackBufferWidth %u.
\n
"
,
d3dpp
.
BackBufferWidth
);
todo_wine
ok
(
d3dpp
.
BackBufferHeight
==
150
,
"Got unexpected BackBufferHeight %u.
\n
"
,
d3dpp
.
BackBufferHeight
);
ok
(
d3dpp
.
BackBufferWidth
==
200
,
"Got unexpected BackBufferWidth %u.
\n
"
,
d3dpp
.
BackBufferWidth
);
ok
(
d3dpp
.
BackBufferHeight
==
150
,
"Got unexpected BackBufferHeight %u.
\n
"
,
d3dpp
.
BackBufferHeight
);
todo_wine
ok
(
d3dpp
.
BackBufferFormat
==
d3ddm
.
Format
,
"Got unexpected BackBufferFormat %#x, expected %#x.
\n
"
,
d3dpp
.
BackBufferFormat
,
d3ddm
.
Format
);
todo_wine
ok
(
d3dpp
.
BackBufferCount
==
1
,
"Got unexpected BackBufferCount %u.
\n
"
,
d3dpp
.
BackBufferCount
);
ok
(
d3dpp
.
BackBufferCount
==
1
,
"Got unexpected BackBufferCount %u.
\n
"
,
d3dpp
.
BackBufferCount
);
ok
(
!
d3dpp
.
MultiSampleType
,
"Got unexpected MultiSampleType %u.
\n
"
,
d3dpp
.
MultiSampleType
);
ok
(
!
d3dpp
.
MultiSampleQuality
,
"Got unexpected MultiSampleQuality %u.
\n
"
,
d3dpp
.
MultiSampleQuality
);
ok
(
d3dpp
.
SwapEffect
==
D3DSWAPEFFECT_DISCARD
,
"Got unexpected SwapEffect %#x.
\n
"
,
d3dpp
.
SwapEffect
);
...
...
dlls/d3d9/tests/device.c
View file @
3ccac1a7
...
...
@@ -1867,11 +1867,11 @@ static void test_reset(void)
hr
=
IDirect3DDevice9_TestCooperativeLevel
(
device1
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_TestCooperativeLevel after a successful reset returned %#x
\n
"
,
hr
);
todo_wine
ok
(
d3dpp
.
BackBufferWidth
==
200
,
"Got unexpected BackBufferWidth %u.
\n
"
,
d3dpp
.
BackBufferWidth
);
todo_wine
ok
(
d3dpp
.
BackBufferHeight
==
150
,
"Got unexpected BackBufferHeight %u.
\n
"
,
d3dpp
.
BackBufferHeight
);
ok
(
d3dpp
.
BackBufferWidth
==
200
,
"Got unexpected BackBufferWidth %u.
\n
"
,
d3dpp
.
BackBufferWidth
);
ok
(
d3dpp
.
BackBufferHeight
==
150
,
"Got unexpected BackBufferHeight %u.
\n
"
,
d3dpp
.
BackBufferHeight
);
todo_wine
ok
(
d3dpp
.
BackBufferFormat
==
d3ddm
.
Format
,
"Got unexpected BackBufferFormat %#x, expected %#x.
\n
"
,
d3dpp
.
BackBufferFormat
,
d3ddm
.
Format
);
todo_wine
ok
(
d3dpp
.
BackBufferCount
==
1
,
"Got unexpected BackBufferCount %u.
\n
"
,
d3dpp
.
BackBufferCount
);
ok
(
d3dpp
.
BackBufferCount
==
1
,
"Got unexpected BackBufferCount %u.
\n
"
,
d3dpp
.
BackBufferCount
);
ok
(
!
d3dpp
.
MultiSampleType
,
"Got unexpected MultiSampleType %u.
\n
"
,
d3dpp
.
MultiSampleType
);
ok
(
!
d3dpp
.
MultiSampleQuality
,
"Got unexpected MultiSampleQuality %u.
\n
"
,
d3dpp
.
MultiSampleQuality
);
ok
(
d3dpp
.
SwapEffect
==
D3DSWAPEFFECT_DISCARD
,
"Got unexpected SwapEffect %#x.
\n
"
,
d3dpp
.
SwapEffect
);
...
...
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