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
a8616b7f
Commit
a8616b7f
authored
Oct 03, 2011
by
Ričardas Barkauskas
Committed by
Alexandre Julliard
Oct 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use unsafe_impl_from_IDirectDrawPalette for application provided interfaces.
parent
07decea8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-0
palette.c
dlls/ddraw/palette.c
+7
-0
surface.c
dlls/ddraw/surface.c
+1
-1
No files found.
dlls/ddraw/ddraw_private.h
View file @
a8616b7f
...
...
@@ -369,6 +369,8 @@ struct IDirectDrawPaletteImpl
IUnknown
*
ifaceToRelease
;
};
IDirectDrawPaletteImpl
*
unsafe_impl_from_IDirectDrawPalette
(
IDirectDrawPalette
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
ddraw_palette_init
(
IDirectDrawPaletteImpl
*
palette
,
IDirectDrawImpl
*
ddraw
,
DWORD
flags
,
PALETTEENTRY
*
entries
)
DECLSPEC_HIDDEN
;
...
...
dlls/ddraw/palette.c
View file @
a8616b7f
...
...
@@ -258,6 +258,13 @@ static const struct IDirectDrawPaletteVtbl ddraw_palette_vtbl =
IDirectDrawPaletteImpl_SetEntries
};
IDirectDrawPaletteImpl
*
unsafe_impl_from_IDirectDrawPalette
(
IDirectDrawPalette
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
ddraw_palette_vtbl
);
return
CONTAINING_RECORD
(
iface
,
IDirectDrawPaletteImpl
,
lpVtbl
);
}
HRESULT
ddraw_palette_init
(
IDirectDrawPaletteImpl
*
palette
,
IDirectDrawImpl
*
ddraw
,
DWORD
flags
,
PALETTEENTRY
*
entries
)
{
...
...
dlls/ddraw/surface.c
View file @
a8616b7f
...
...
@@ -4288,7 +4288,7 @@ static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDir
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
);
IDirectDrawPalette
*
oldPal
;
IDirectDrawSurfaceImpl
*
surf
;
IDirectDrawPaletteImpl
*
PalImpl
=
(
IDirectDrawPaletteImpl
*
)
Pal
;
IDirectDrawPaletteImpl
*
PalImpl
=
unsafe_impl_from_IDirectDrawPalette
(
Pal
)
;
HRESULT
hr
;
TRACE
(
"iface %p, palette %p.
\n
"
,
iface
,
Pal
);
...
...
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