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
fc25510f
Commit
fc25510f
authored
May 12, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove wined3d_surface_get_palette.
parent
46df06aa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
17 deletions
+8
-17
device.c
dlls/ddraw/device.c
+1
-1
surface.c
dlls/ddraw/surface.c
+7
-7
surface.c
dlls/wined3d/surface.c
+0
-7
wined3d.spec
dlls/wined3d/wined3d.spec
+0
-1
wined3d.h
include/wine/wined3d.h
+0
-1
No files found.
dlls/ddraw/device.c
View file @
fc25510f
...
...
@@ -1802,7 +1802,7 @@ static BOOL validate_surface_palette(struct ddraw_surface *surface)
&
(
DDPF_PALETTEINDEXED1
|
DDPF_PALETTEINDEXED2
|
DDPF_PALETTEINDEXED4
|
DDPF_PALETTEINDEXED8
|
DDPF_PALETTEINDEXEDTO8
))
||
wined3d_surface_get_palette
(
surface
->
wined3d_surface
)
;
||
surface
->
palette
;
}
static
HRESULT
d3d_device_set_render_target
(
struct
d3d_device
*
device
,
...
...
dlls/ddraw/surface.c
View file @
fc25510f
...
...
@@ -4982,7 +4982,7 @@ static HRESULT WINAPI d3d_texture2_Load(IDirect3DTexture2 *iface, IDirect3DTextu
for
(;;)
{
struct
wined3d_palette
*
wined3d_dst_pal
,
*
wined3d_
src_pal
;
struct
ddraw_palette
*
dst_pal
,
*
src_pal
;
DDSURFACEDESC
*
src_desc
,
*
dst_desc
;
TRACE
(
"Copying surface %p to surface %p (mipmap level %d).
\n
"
,
...
...
@@ -4992,20 +4992,20 @@ static HRESULT WINAPI d3d_texture2_Load(IDirect3DTexture2 *iface, IDirect3DTextu
dst_surface
->
surface_desc
.
ddsCaps
.
dwCaps
&=
~
DDSCAPS_ALLOCONLOAD
;
/* Get the palettes */
wined3d_dst_pal
=
wined3d_surface_get_palette
(
dst_surface
->
wined3d_surface
)
;
wined3d_src_pal
=
wined3d_surface_get_palette
(
src_surface
->
wined3d_surface
)
;
dst_pal
=
dst_surface
->
palette
;
src_pal
=
src_surface
->
palette
;
if
(
wined3d_
src_pal
)
if
(
src_pal
)
{
PALETTEENTRY
palent
[
256
];
if
(
!
wined3d_
dst_pal
)
if
(
!
dst_pal
)
{
wined3d_mutex_unlock
();
return
DDERR_NOPALETTEATTACHED
;
}
wined3d_palette_get_entries
(
wined3d_src_pal
,
0
,
0
,
256
,
palent
);
wined3d_palette_set_entries
(
wined3d_dst_pal
,
0
,
0
,
256
,
palent
);
IDirectDrawPalette_GetEntries
(
&
src_pal
->
IDirectDrawPalette_iface
,
0
,
0
,
256
,
palent
);
IDirectDrawPalette_SetEntries
(
&
dst_pal
->
IDirectDrawPalette_iface
,
0
,
0
,
256
,
palent
);
}
/* Copy one surface on the other */
...
...
dlls/wined3d/surface.c
View file @
fc25510f
...
...
@@ -2381,13 +2381,6 @@ void CDECL wined3d_surface_set_palette(struct wined3d_surface *surface, struct w
surface
->
surface_ops
->
surface_realize_palette
(
surface
);
}
struct
wined3d_palette
*
CDECL
wined3d_surface_get_palette
(
const
struct
wined3d_surface
*
surface
)
{
TRACE
(
"surface %p.
\n
"
,
surface
);
return
surface
->
palette
;
}
DWORD
CDECL
wined3d_surface_get_pitch
(
const
struct
wined3d_surface
*
surface
)
{
unsigned
int
alignment
;
...
...
dlls/wined3d/wined3d.spec
View file @
fc25510f
...
...
@@ -207,7 +207,6 @@
@ cdecl wined3d_surface_get_blt_status(ptr long)
@ cdecl wined3d_surface_get_flip_status(ptr long)
@ cdecl wined3d_surface_get_overlay_position(ptr ptr ptr)
@ cdecl wined3d_surface_get_palette(ptr)
@ cdecl wined3d_surface_get_parent(ptr)
@ cdecl wined3d_surface_get_pitch(ptr)
@ cdecl wined3d_surface_get_priority(ptr)
...
...
include/wine/wined3d.h
View file @
fc25510f
...
...
@@ -2397,7 +2397,6 @@ struct wined3d_surface * __cdecl wined3d_surface_from_resource(struct wined3d_re
HRESULT
__cdecl
wined3d_surface_get_blt_status
(
const
struct
wined3d_surface
*
surface
,
DWORD
flags
);
HRESULT
__cdecl
wined3d_surface_get_flip_status
(
const
struct
wined3d_surface
*
surface
,
DWORD
flags
);
HRESULT
__cdecl
wined3d_surface_get_overlay_position
(
const
struct
wined3d_surface
*
surface
,
LONG
*
x
,
LONG
*
y
);
struct
wined3d_palette
*
__cdecl
wined3d_surface_get_palette
(
const
struct
wined3d_surface
*
surface
);
void
*
__cdecl
wined3d_surface_get_parent
(
const
struct
wined3d_surface
*
surface
);
DWORD
__cdecl
wined3d_surface_get_pitch
(
const
struct
wined3d_surface
*
surface
);
DWORD
__cdecl
wined3d_surface_get_priority
(
const
struct
wined3d_surface
*
surface
);
...
...
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