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
d5863f7f
Commit
d5863f7f
authored
Dec 12, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Set DDPCAPS_PRIMARYSURFACE when attaching a palette to the primary surface.
parent
bf7f80f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
surface.c
dlls/ddraw/surface.c
+11
-5
No files found.
dlls/ddraw/surface.c
View file @
d5863f7f
...
...
@@ -4708,6 +4708,17 @@ static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDir
wined3d_mutex_lock
();
prev
=
surface
->
palette
;
if
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
if
(
prev
)
prev
->
flags
&=
~
DDPCAPS_PRIMARYSURFACE
;
if
(
palette_impl
)
palette_impl
->
flags
|=
DDPCAPS_PRIMARYSURFACE
;
/* Update the wined3d frontbuffer if this is the primary. */
if
(
surface
->
ddraw
->
wined3d_frontbuffer
)
wined3d_surface_set_palette
(
surface
->
ddraw
->
wined3d_frontbuffer
,
palette_impl
?
palette_impl
->
wineD3DPalette
:
NULL
);
}
if
(
palette_impl
)
IDirectDrawPalette_AddRef
(
&
palette_impl
->
IDirectDrawPalette_iface
);
if
(
prev
)
...
...
@@ -4715,11 +4726,6 @@ static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDir
surface
->
palette
=
palette_impl
;
wined3d_surface_set_palette
(
surface
->
wined3d_surface
,
palette_impl
?
palette_impl
->
wineD3DPalette
:
NULL
);
/* Update the wined3d frontbuffer if this is the primary. */
if
((
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
&&
surface
->
ddraw
->
wined3d_frontbuffer
)
wined3d_surface_set_palette
(
surface
->
ddraw
->
wined3d_frontbuffer
,
palette_impl
?
palette_impl
->
wineD3DPalette
:
NULL
);
wined3d_mutex_unlock
();
return
DD_OK
;
...
...
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