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
8d930f60
Commit
8d930f60
authored
Jul 01, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Restore the gamma when destroying the swapchain.
parent
2d4d18b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
device.c
dlls/wined3d/device.c
+2
-0
swapchain.c
dlls/wined3d/swapchain.c
+4
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/device.c
View file @
8d930f60
...
...
@@ -1599,6 +1599,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
object
->
wantsDepthStencilBuffer
=
FALSE
;
}
IWineD3DSwapChain_GetGammaRamp
((
IWineD3DSwapChain
*
)
object
,
&
object
->
orig_gamma
);
TRACE
(
"Created swapchain %p
\n
"
,
object
);
TRACE
(
"FrontBuf @ %p, BackBuf @ %p, DepthStencil %d
\n
"
,
object
->
frontBuffer
,
object
->
backBuffer
?
object
->
backBuffer
[
0
]
:
NULL
,
object
->
wantsDepthStencilBuffer
);
return
WINED3D_OK
;
...
...
dlls/wined3d/swapchain.c
View file @
8d930f60
...
...
@@ -88,6 +88,10 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
WINED3DDISPLAYMODE
mode
;
int
i
;
TRACE
(
"Destroying swapchain %p
\n
"
,
iface
);
IWineD3DSwapChain_SetGammaRamp
(
iface
,
0
,
&
This
->
orig_gamma
);
/* release the ref to the front and back buffer parents */
if
(
This
->
frontBuffer
)
{
IWineD3DSurface_SetContainer
(
This
->
frontBuffer
,
0
);
...
...
dlls/wined3d/wined3d_private.h
View file @
8d930f60
...
...
@@ -1698,6 +1698,7 @@ typedef struct IWineD3DSwapChainImpl
WINED3DPRESENT_PARAMETERS
presentParms
;
DWORD
orig_width
,
orig_height
;
WINED3DFORMAT
orig_fmt
;
WINED3DGAMMARAMP
orig_gamma
;
long
prev_time
,
frames
;
/* Performance tracking */
unsigned
int
vSyncCounter
;
...
...
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