Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
93af8d36
Commit
93af8d36
authored
Nov 01, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Do not restore the display mode in ddraw.
parent
561ebb35
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
2 deletions
+8
-2
device.c
dlls/d3d8/device.c
+2
-0
directx.c
dlls/d3d8/directx.c
+1
-0
device.c
dlls/d3d9/device.c
+1
-0
directx.c
dlls/d3d9/directx.c
+1
-0
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
swapchain_gdi.c
dlls/wined3d/swapchain_gdi.c
+1
-1
wined3d_types.h
include/wine/wined3d_types.h
+1
-0
No files found.
dlls/d3d8/device.c
View file @
93af8d36
...
...
@@ -305,6 +305,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateAdditionalSwapChain(LPDIRECT3DD
localParameters
.
Flags
=
pPresentationParameters
->
Flags
;
localParameters
.
FullScreen_RefreshRateInHz
=
pPresentationParameters
->
FullScreen_RefreshRateInHz
;
localParameters
.
PresentationInterval
=
pPresentationParameters
->
FullScreen_PresentationInterval
;
localParameters
.
AutoRestoreDisplayMode
=
TRUE
;
EnterCriticalSection
(
&
d3d8_cs
);
hrc
=
IWineD3DDevice_CreateSwapChain
(
This
->
WineD3DDevice
,
&
localParameters
,
&
object
->
wineD3DSwapChain
,
(
IUnknown
*
)
object
,
D3D8CB_CreateRenderTarget
,
D3D8CB_CreateDepthStencilSurface
,
SURFACE_OPENGL
);
...
...
@@ -358,6 +359,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_Reset(LPDIRECT3DDEVICE8 iface, D3DPRE
localParameters
.
Flags
=
pPresentationParameters
->
Flags
;
localParameters
.
FullScreen_RefreshRateInHz
=
pPresentationParameters
->
FullScreen_RefreshRateInHz
;
localParameters
.
PresentationInterval
=
pPresentationParameters
->
FullScreen_PresentationInterval
;
localParameters
.
AutoRestoreDisplayMode
=
TRUE
;
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DDevice_Reset
(
This
->
WineD3DDevice
,
&
localParameters
);
...
...
dlls/d3d8/directx.c
View file @
93af8d36
...
...
@@ -444,6 +444,7 @@ static HRESULT WINAPI IDirect3D8Impl_CreateDevice(LPDIRECT3D8 iface, UINT Adapte
localParameters
.
Flags
=
pPresentationParameters
->
Flags
;
localParameters
.
FullScreen_RefreshRateInHz
=
pPresentationParameters
->
FullScreen_RefreshRateInHz
;
localParameters
.
PresentationInterval
=
pPresentationParameters
->
FullScreen_PresentationInterval
;
localParameters
.
AutoRestoreDisplayMode
=
TRUE
;
if
(
BehaviourFlags
&
D3DCREATE_MULTITHREADED
)
{
IWineD3DDevice_SetMultithreaded
(
object
->
WineD3DDevice
);
...
...
dlls/d3d9/device.c
View file @
93af8d36
...
...
@@ -376,6 +376,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_Reset(LPDIRECT3DDEVICE9EX iface, D3
localParameters
.
Flags
=
pPresentationParameters
->
Flags
;
localParameters
.
FullScreen_RefreshRateInHz
=
pPresentationParameters
->
FullScreen_RefreshRateInHz
;
localParameters
.
PresentationInterval
=
pPresentationParameters
->
PresentationInterval
;
localParameters
.
AutoRestoreDisplayMode
=
TRUE
;
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DDevice_Reset
(
This
->
WineD3DDevice
,
&
localParameters
);
...
...
dlls/d3d9/directx.c
View file @
93af8d36
...
...
@@ -515,6 +515,7 @@ static HRESULT WINAPI IDirect3D9Impl_CreateDevice(LPDIRECT3D9EX iface, UINT Adap
localParameters
.
Flags
=
pPresentationParameters
->
Flags
;
localParameters
.
FullScreen_RefreshRateInHz
=
pPresentationParameters
->
FullScreen_RefreshRateInHz
;
localParameters
.
PresentationInterval
=
pPresentationParameters
->
PresentationInterval
;
localParameters
.
AutoRestoreDisplayMode
=
TRUE
;
if
(
BehaviourFlags
&
D3DCREATE_MULTITHREADED
)
{
IWineD3DDevice_SetMultithreaded
(
object
->
WineD3DDevice
);
...
...
dlls/wined3d/swapchain.c
View file @
93af8d36
...
...
@@ -72,7 +72,7 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
* this will be the original desktop resolution. In case of d3d7 this will be a NOP because ddraw sets the resolution
* before starting up Direct3D, thus orig_width and orig_height will be equal to the modes in the presentation params
*/
if
(
This
->
presentParms
.
Windowed
==
FALSE
)
{
if
(
This
->
presentParms
.
Windowed
==
FALSE
&&
This
->
presentParms
.
AutoRestoreDisplayMode
)
{
mode
.
Width
=
This
->
orig_width
;
mode
.
Height
=
This
->
orig_height
;
mode
.
RefreshRate
=
0
;
...
...
dlls/wined3d/swapchain_gdi.c
View file @
93af8d36
...
...
@@ -59,7 +59,7 @@ static void WINAPI IWineGDISwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
* this will be the original desktop resolution. In case of d3d7 this will be a NOP because ddraw sets the resolution
* before starting up Direct3D, thus orig_width and orig_height will be equal to the modes in the presentation params
*/
if
(
This
->
presentParms
.
Windowed
==
FALSE
)
{
if
(
This
->
presentParms
.
Windowed
==
FALSE
&&
This
->
presentParms
.
AutoRestoreDisplayMode
)
{
mode
.
Width
=
This
->
orig_width
;
mode
.
Height
=
This
->
orig_height
;
mode
.
RefreshRate
=
0
;
...
...
include/wine/wined3d_types.h
View file @
93af8d36
...
...
@@ -886,6 +886,7 @@ typedef struct _WINED3DPRESENT_PARAMETERS {
DWORD
Flags
;
UINT
FullScreen_RefreshRateInHz
;
UINT
PresentationInterval
;
BOOL
AutoRestoreDisplayMode
;
}
WINED3DPRESENT_PARAMETERS
;
#define WINED3DPRESENTFLAG_LOCKABLE_BACKBUFFER 0x00000001
...
...
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