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
44f2589e
Commit
44f2589e
authored
Feb 02, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use wined3d_resource_unmap() in ddraw_surface7_Unlock().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36187987
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
4 deletions
+3
-4
surface.c
dlls/ddraw/surface.c
+1
-1
surface.c
dlls/wined3d/surface.c
+1
-1
wined3d.spec
dlls/wined3d/wined3d.spec
+0
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
wined3d.h
include/wine/wined3d.h
+0
-1
No files found.
dlls/ddraw/surface.c
View file @
44f2589e
...
...
@@ -1159,7 +1159,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface7_Unlock(IDirectDrawSurface
TRACE
(
"iface %p, rect %s.
\n
"
,
iface
,
wine_dbgstr_rect
(
pRect
));
wined3d_mutex_lock
();
hr
=
wined3d_
surface_unmap
(
surface
->
wined3d_surface
);
hr
=
wined3d_
resource_unmap
(
wined3d_texture_get_resource
(
surface
->
wined3d_texture
),
surface
->
sub_resource_idx
);
if
(
SUCCEEDED
(
hr
)
&&
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
hr
=
ddraw_surface_update_frontbuffer
(
surface
,
&
surface
->
ddraw
->
primary_lock
,
FALSE
);
wined3d_mutex_unlock
();
...
...
dlls/wined3d/surface.c
View file @
44f2589e
...
...
@@ -2418,7 +2418,7 @@ do { \
return
WINED3D_OK
;
}
HRESULT
CDECL
wined3d_surface_unmap
(
struct
wined3d_surface
*
surface
)
HRESULT
wined3d_surface_unmap
(
struct
wined3d_surface
*
surface
)
{
TRACE
(
"surface %p.
\n
"
,
surface
);
...
...
dlls/wined3d/wined3d.spec
View file @
44f2589e
...
...
@@ -227,7 +227,6 @@
@ cdecl wined3d_surface_get_pitch(ptr)
@ cdecl wined3d_surface_get_resource(ptr)
@ cdecl wined3d_surface_set_overlay_position(ptr long long)
@ cdecl wined3d_surface_unmap(ptr)
@ cdecl wined3d_surface_update_overlay(ptr ptr ptr ptr long ptr)
@ cdecl wined3d_surface_update_overlay_z_order(ptr long ptr)
...
...
dlls/wined3d/wined3d_private.h
View file @
44f2589e
...
...
@@ -2559,6 +2559,7 @@ void surface_set_compatible_renderbuffer(struct wined3d_surface *surface,
const
struct
wined3d_surface
*
rt
)
DECLSPEC_HIDDEN
;
void
surface_set_texture_target
(
struct
wined3d_surface
*
surface
,
GLenum
target
,
GLint
level
)
DECLSPEC_HIDDEN
;
void
surface_translate_drawable_coords
(
const
struct
wined3d_surface
*
surface
,
HWND
window
,
RECT
*
rect
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_surface_unmap
(
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_surface_update_desc
(
struct
wined3d_surface
*
surface
,
const
struct
wined3d_gl_info
*
gl_info
,
void
*
mem
,
unsigned
int
pitch
)
DECLSPEC_HIDDEN
;
HRESULT
surface_upload_from_surface
(
struct
wined3d_surface
*
dst_surface
,
const
POINT
*
dst_point
,
...
...
include/wine/wined3d.h
View file @
44f2589e
...
...
@@ -2480,7 +2480,6 @@ void * __cdecl wined3d_surface_get_parent(const struct wined3d_surface *surface)
DWORD
__cdecl
wined3d_surface_get_pitch
(
const
struct
wined3d_surface
*
surface
);
struct
wined3d_resource
*
__cdecl
wined3d_surface_get_resource
(
struct
wined3d_surface
*
surface
);
HRESULT
__cdecl
wined3d_surface_set_overlay_position
(
struct
wined3d_surface
*
surface
,
LONG
x
,
LONG
y
);
HRESULT
__cdecl
wined3d_surface_unmap
(
struct
wined3d_surface
*
surface
);
HRESULT
__cdecl
wined3d_surface_update_overlay
(
struct
wined3d_surface
*
surface
,
const
RECT
*
src_rect
,
struct
wined3d_surface
*
dst_surface
,
const
RECT
*
dst_rect
,
DWORD
flags
,
const
WINEDDOVERLAYFX
*
fx
);
HRESULT
__cdecl
wined3d_surface_update_overlay_z_order
(
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