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
13b05b9d
Commit
13b05b9d
authored
Mar 13, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DTexture::Unmap().
parent
b77a6615
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
28 deletions
+17
-28
texture.c
dlls/d3d8/texture.c
+8
-4
texture.c
dlls/d3d9/texture.c
+9
-4
texture.c
dlls/wined3d/texture.c
+0
-17
wined3d.idl
include/wine/wined3d.idl
+0
-3
No files found.
dlls/d3d8/texture.c
View file @
13b05b9d
...
...
@@ -321,15 +321,19 @@ static HRESULT WINAPI IDirect3DTexture8Impl_LockRect(IDirect3DTexture8 *iface, U
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DTexture8Impl_UnlockRect
(
IDirect3DTexture8
*
iface
,
UINT
L
evel
)
static
HRESULT
WINAPI
IDirect3DTexture8Impl_UnlockRect
(
IDirect3DTexture8
*
iface
,
UINT
l
evel
)
{
IDirect3DTexture8Impl
*
This
=
impl_from_IDirect3DTexture8
(
iface
);
IDirect3DTexture8Impl
*
texture
=
impl_from_IDirect3DTexture8
(
iface
);
struct
wined3d_resource
*
sub_resource
;
HRESULT
hr
;
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
L
evel
);
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
l
evel
);
wined3d_mutex_lock
();
hr
=
IWineD3DTexture_Unmap
(
This
->
wineD3DTexture
,
Level
);
if
(
!
(
sub_resource
=
IWineD3DTexture_GetSubResource
(
texture
->
wineD3DTexture
,
level
)))
hr
=
D3DERR_INVALIDCALL
;
else
hr
=
IDirect3DSurface8_UnlockRect
((
IDirect3DSurface8
*
)
wined3d_resource_get_parent
(
sub_resource
));
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d9/texture.c
View file @
13b05b9d
...
...
@@ -336,14 +336,19 @@ static HRESULT WINAPI IDirect3DTexture9Impl_LockRect(IDirect3DTexture9 *iface,
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DTexture9Impl_UnlockRect
(
LPDIRECT3DTEXTURE9
iface
,
UINT
Level
)
{
IDirect3DTexture9Impl
*
This
=
(
IDirect3DTexture9Impl
*
)
iface
;
static
HRESULT
WINAPI
IDirect3DTexture9Impl_UnlockRect
(
IDirect3DTexture9
*
iface
,
UINT
level
)
{
IDirect3DTexture9Impl
*
texture
=
(
IDirect3DTexture9Impl
*
)
iface
;
struct
wined3d_resource
*
sub_resource
;
HRESULT
hr
;
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
L
evel
);
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
l
evel
);
wined3d_mutex_lock
();
hr
=
IWineD3DTexture_Unmap
(
This
->
wineD3DTexture
,
Level
);
if
(
!
(
sub_resource
=
IWineD3DTexture_GetSubResource
(
texture
->
wineD3DTexture
,
level
)))
hr
=
D3DERR_INVALIDCALL
;
else
hr
=
IDirect3DSurface9_UnlockRect
((
IDirect3DSurface9
*
)
wined3d_resource_get_parent
(
sub_resource
));
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/wined3d/texture.c
View file @
13b05b9d
...
...
@@ -361,22 +361,6 @@ static struct wined3d_resource * WINAPI IWineD3DTextureImpl_GetSubResource(IWine
return
basetexture_get_sub_resource
(
texture
,
sub_resource_idx
);
}
static
HRESULT
WINAPI
IWineD3DTextureImpl_Unmap
(
IWineD3DTexture
*
iface
,
UINT
sub_resource_idx
)
{
IWineD3DBaseTextureImpl
*
texture
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
struct
wined3d_resource
*
sub_resource
;
TRACE
(
"iface %p, sub_resource_idx %u.
\n
"
,
iface
,
sub_resource_idx
);
if
(
!
(
sub_resource
=
basetexture_get_sub_resource
(
texture
,
sub_resource_idx
)))
{
WARN
(
"Failed to get sub-resource.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
return
IWineD3DSurface_Unmap
((
IWineD3DSurface
*
)
surface_from_resource
(
sub_resource
));
}
static
HRESULT
WINAPI
IWineD3DTextureImpl_AddDirtyRect
(
IWineD3DTexture
*
iface
,
const
RECT
*
dirty_rect
)
{
IWineD3DBaseTextureImpl
*
texture
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
...
...
@@ -421,7 +405,6 @@ static const IWineD3DTextureVtbl IWineD3DTexture_Vtbl =
IWineD3DTextureImpl_IsCondNP2
,
IWineD3DTextureImpl_GetSubResource
,
/* IWineD3DTexture */
IWineD3DTextureImpl_Unmap
,
IWineD3DTextureImpl_AddDirtyRect
};
...
...
include/wine/wined3d.idl
View file @
13b05b9d
...
...
@@ -2370,9 +2370,6 @@ interface IWineD3DBaseTexture : IWineD3DResource
]
interface
IWineD3DTexture
:
IWineD3DBaseTexture
{
HRESULT
Unmap
(
[
in
]
UINT
sub_resource_idx
)
;
HRESULT
AddDirtyRect
(
[
in
]
const
RECT
*
dirty_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