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
d30c25be
Commit
d30c25be
authored
Apr 23, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Do not access the surface connection structure directly in SetPalette.
parent
b4d48c7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
surface.c
dlls/ddraw/surface.c
+20
-3
No files found.
dlls/ddraw/surface.c
View file @
d30c25be
...
...
@@ -2238,13 +2238,30 @@ IDirectDrawSurfaceImpl_SetPalette(IDirectDrawSurface7 *iface,
/* Release the old palette */
if
(
oldPal
)
IDirectDrawPalette_Release
(
oldPal
);
/* If this is a front buffer, also update the back buffers */
/* If this is a front buffer, also update the back buffers
* TODO: How do things work for palettized cube textures?
*/
if
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_FRONTBUFFER
)
{
for
(
surf
=
This
->
next_complex
;
surf
!=
NULL
;
surf
=
surf
->
next_complex
)
/* For primary surfaces the tree is just a list, so the simpler scheme fits too */
DDSCAPS2
caps2
=
{
DDSCAPS_PRIMARYSURFACE
,
0
,
0
,
0
};
surf
=
This
;
while
(
1
)
{
IDirectDrawSurface7_SetPalette
(
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
),
IDirectDrawSurface7
*
attach
;
HRESULT
hr
;
hr
=
IDirectDrawSurface7_GetAttachedSurface
(
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
),
&
caps2
,
&
attach
);
if
(
hr
!=
DD_OK
)
{
break
;
}
IDirectDrawSurface7_SetPalette
(
attach
,
Pal
);
surf
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
attach
);
IDirectDrawSurface7_Release
(
attach
);
}
}
...
...
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