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
c5a8b933
Commit
c5a8b933
authored
Dec 13, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Unset the primary surface's palette when the palette is released.
parent
e0b68129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-0
palette.c
dlls/ddraw/palette.c
+4
-3
No files found.
dlls/ddraw/ddraw_private.h
View file @
c5a8b933
...
...
@@ -379,6 +379,7 @@ struct ddraw_palette
LONG
ref
;
struct
wined3d_palette
*
wineD3DPalette
;
struct
ddraw
*
ddraw
;
IUnknown
*
ifaceToRelease
;
DWORD
flags
;
};
...
...
dlls/ddraw/palette.c
View file @
c5a8b933
...
...
@@ -94,10 +94,10 @@ static ULONG WINAPI ddraw_palette_Release(IDirectDrawPalette *iface)
{
wined3d_mutex_lock
();
wined3d_palette_decref
(
This
->
wineD3DPalette
);
if
(
This
->
ifaceToRelease
)
{
if
((
This
->
flags
&
DDPCAPS_PRIMARYSURFACE
)
&&
This
->
ddraw
->
primary
)
This
->
ddraw
->
primary
->
palette
=
NULL
;
if
(
This
->
ifaceToRelease
)
IUnknown_Release
(
This
->
ifaceToRelease
);
}
wined3d_mutex_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -251,6 +251,7 @@ HRESULT ddraw_palette_init(struct ddraw_palette *palette,
return
hr
;
}
palette
->
ddraw
=
ddraw
;
palette
->
ifaceToRelease
=
(
IUnknown
*
)
&
ddraw
->
IDirectDraw7_iface
;
IUnknown_AddRef
(
palette
->
ifaceToRelease
);
...
...
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