Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2b18192e
Commit
2b18192e
authored
Mar 10, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DSurface::GetDesc().
parent
30997b56
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
21 additions
and
23 deletions
+21
-23
device.c
dlls/d3d8/device.c
+5
-2
surface.c
dlls/d3d8/surface.c
+3
-1
device.c
dlls/d3d9/device.c
+3
-1
surface.c
dlls/d3d9/surface.c
+3
-1
ddraw.c
dlls/ddraw/ddraw.c
+3
-1
surface.c
dlls/ddraw/surface.c
+3
-1
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
surface.c
dlls/wined3d/surface.c
+0
-1
surface_base.c
dlls/wined3d/surface_base.c
+0
-9
surface_gdi.c
dlls/wined3d/surface_gdi.c
+0
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
wined3d.idl
include/wine/wined3d.idl
+0
-3
No files found.
dlls/d3d8/device.c
View file @
2b18192e
...
...
@@ -931,6 +931,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(IDirect3DDevice8 *iface,
IDirect3DSurface8Impl
*
Dest
=
(
IDirect3DSurface8Impl
*
)
pDestinationSurface
;
enum
wined3d_format_id
srcFormat
,
destFormat
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
TRACE
(
"iface %p, src_surface %p, src_rects %p, rect_count %u, dst_surface %p, dst_points %p.
\n
"
,
iface
,
pSourceSurface
,
pSourceRects
,
cRects
,
pDestinationSurface
,
pDestPoints
);
...
...
@@ -939,10 +940,12 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(IDirect3DDevice8 *iface,
* destination texture is in WINED3DPOOL_DEFAULT. */
wined3d_mutex_lock
();
IWineD3DSurface_GetDesc
(
Source
->
wineD3DSurface
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
Source
->
wineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
srcFormat
=
wined3d_desc
.
format
;
IWineD3DSurface_GetDesc
(
Dest
->
wineD3DSurface
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
Dest
->
wineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
destFormat
=
wined3d_desc
.
format
;
/* Check that the source and destination formats match */
...
...
dlls/d3d8/surface.c
View file @
2b18192e
...
...
@@ -191,11 +191,13 @@ static HRESULT WINAPI IDirect3DSurface8Impl_GetDesc(IDirect3DSurface8 *iface, D3
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_mutex_lock
();
IWineD3DSurface_GetDesc
(
This
->
wineD3DSurface
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
This
->
wineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
...
...
dlls/d3d9/device.c
View file @
2b18192e
...
...
@@ -1070,6 +1070,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_ColorFill(IDirect3DDevice9Ex *iface,
};
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DSurface9Impl
*
surface
=
(
IDirect3DSurface9Impl
*
)
pSurface
;
struct
wined3d_resource
*
wined3d_resource
;
struct
wined3d_resource_desc
desc
;
HRESULT
hr
;
...
...
@@ -1077,7 +1078,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_ColorFill(IDirect3DDevice9Ex *iface,
wined3d_mutex_lock
();
IWineD3DSurface_GetDesc
(
surface
->
wineD3DSurface
,
&
desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
surface
->
wineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
desc
);
/* This method is only allowed with surfaces that are render targets, or
* offscreen plain surfaces in D3DPOOL_DEFAULT. */
...
...
dlls/d3d9/surface.c
View file @
2b18192e
...
...
@@ -243,11 +243,13 @@ static HRESULT WINAPI IDirect3DSurface9Impl_GetDesc(IDirect3DSurface9 *iface, D3
{
IDirect3DSurface9Impl
*
This
=
(
IDirect3DSurface9Impl
*
)
iface
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_mutex_lock
();
IWineD3DSurface_GetDesc
(
This
->
wineD3DSurface
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
This
->
wineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
...
...
dlls/ddraw/ddraw.c
View file @
2b18192e
...
...
@@ -2516,6 +2516,7 @@ HRESULT WINAPI ddraw_recreate_surfaces_cb(IDirectDrawSurface7 *surf, DDSURFACEDE
{
IDirectDrawSurfaceImpl
*
surfImpl
=
(
IDirectDrawSurfaceImpl
*
)
surf
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
IDirectDrawImpl
*
This
=
surfImpl
->
ddraw
;
struct
wined3d_clipper
*
clipper
=
NULL
;
IWineD3DSurface
*
wineD3DSurface
;
...
...
@@ -2540,7 +2541,8 @@ HRESULT WINAPI ddraw_recreate_surfaces_cb(IDirectDrawSurface7 *surf, DDSURFACEDE
IWineD3DSurface_GetClipper
(
wineD3DSurface
,
&
clipper
);
/* Get the surface properties */
IWineD3DSurface_GetDesc
(
wineD3DSurface
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
wineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
parent
=
IWineD3DSurface_GetParent
(
wineD3DSurface
);
hr
=
IWineD3DDevice_CreateSurface
(
This
->
wineD3DDevice
,
wined3d_desc
.
width
,
wined3d_desc
.
height
,
...
...
dlls/ddraw/surface.c
View file @
2b18192e
...
...
@@ -3500,6 +3500,7 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
DDSURFACEDESC2
*
desc
,
UINT
mip_level
,
WINED3DSURFTYPE
surface_type
)
{
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
WINED3DPOOL
pool
=
WINED3DPOOL_DEFAULT
;
enum
wined3d_format_id
format
;
DWORD
usage
=
0
;
...
...
@@ -3588,7 +3589,8 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
}
surface
->
surface_desc
.
dwFlags
|=
DDSD_PIXELFORMAT
;
IWineD3DSurface_GetDesc
(
surface
->
WineD3DSurface
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DSurface_GetResource
(
surface
->
WineD3DSurface
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
format
=
wined3d_desc
.
format
;
if
(
format
==
WINED3DFMT_UNKNOWN
)
...
...
dlls/wined3d/stateblock.c
View file @
2b18192e
...
...
@@ -1292,7 +1292,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
{
struct
wined3d_resource_desc
desc
;
IWineD3DSurface_GetDesc
(
backbuffer
,
&
desc
);
wined3d_resource_get_desc
(
&
((
IWineD3DSurfaceImpl
*
)
backbuffer
)
->
resource
,
&
desc
);
IWineD3DSurface_Release
(
backbuffer
);
/* Set the default scissor rect values */
...
...
dlls/wined3d/surface.c
View file @
2b18192e
...
...
@@ -4720,7 +4720,6 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DBaseSurfaceImpl_GetType
,
/* IWineD3DSurface */
IWineD3DBaseSurfaceImpl_GetResource
,
IWineD3DBaseSurfaceImpl_GetDesc
,
IWineD3DSurfaceImpl_Map
,
IWineD3DSurfaceImpl_Unmap
,
IWineD3DSurfaceImpl_GetDC
,
...
...
dlls/wined3d/surface_base.c
View file @
2b18192e
...
...
@@ -157,15 +157,6 @@ struct wined3d_resource * WINAPI IWineD3DBaseSurfaceImpl_GetResource(IWineD3DSur
return
&
((
IWineD3DSurfaceImpl
*
)
iface
)
->
resource
;
}
void
WINAPI
IWineD3DBaseSurfaceImpl_GetDesc
(
IWineD3DSurface
*
iface
,
struct
wined3d_resource_desc
*
desc
)
{
IWineD3DSurfaceImpl
*
surface
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_resource_get_desc
(
&
surface
->
resource
,
desc
);
}
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_GetBltStatus
(
IWineD3DSurface
*
iface
,
DWORD
flags
)
{
TRACE
(
"iface %p, flags %#x.
\n
"
,
iface
,
flags
);
...
...
dlls/wined3d/surface_gdi.c
View file @
2b18192e
...
...
@@ -452,7 +452,6 @@ const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl =
IWineD3DBaseSurfaceImpl_GetType
,
/* IWineD3DSurface */
IWineD3DBaseSurfaceImpl_GetResource
,
IWineD3DBaseSurfaceImpl_GetDesc
,
IWineGDISurfaceImpl_Map
,
IWineGDISurfaceImpl_Unmap
,
IWineGDISurfaceImpl_GetDC
,
...
...
dlls/wined3d/wined3d_private.h
View file @
2b18192e
...
...
@@ -2200,7 +2200,6 @@ DWORD WINAPI IWineD3DBaseSurfaceImpl_SetPriority(IWineD3DSurface *iface, DWORD P
DWORD
WINAPI
IWineD3DBaseSurfaceImpl_GetPriority
(
IWineD3DSurface
*
iface
)
DECLSPEC_HIDDEN
;
WINED3DRESOURCETYPE
WINAPI
IWineD3DBaseSurfaceImpl_GetType
(
IWineD3DSurface
*
iface
)
DECLSPEC_HIDDEN
;
struct
wined3d_resource
*
WINAPI
IWineD3DBaseSurfaceImpl_GetResource
(
IWineD3DSurface
*
iface
)
DECLSPEC_HIDDEN
;
void
WINAPI
IWineD3DBaseSurfaceImpl_GetDesc
(
IWineD3DSurface
*
iface
,
struct
wined3d_resource_desc
*
desc
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_GetBltStatus
(
IWineD3DSurface
*
iface
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_GetFlipStatus
(
IWineD3DSurface
*
iface
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_IsLost
(
IWineD3DSurface
*
iface
)
DECLSPEC_HIDDEN
;
...
...
include/wine/wined3d.idl
View file @
2b18192e
...
...
@@ -2226,9 +2226,6 @@ interface IWineD3DSurface : IWineD3DResource
{
struct
wined3d_resource
*
GetResource
(
)
;
void
GetDesc
(
[
out
]
struct
wined3d_resource_desc
*
desc
)
;
HRESULT
Map
(
[
out
]
WINED3DLOCKED_RECT
*
locked_rect
,
[
in
]
const
RECT
*
rect
,
...
...
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