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
257ee8cc
Commit
257ee8cc
authored
Jan 29, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use wined3d_texture_blt() in ddraw_surface_update_frontbuffer().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1a812eb6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
11 deletions
+4
-11
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-1
surface.c
dlls/ddraw/surface.c
+2
-2
surface.c
dlls/wined3d/surface.c
+0
-5
wined3d.spec
dlls/wined3d/wined3d.spec
+0
-1
wined3d.h
include/wine/wined3d.h
+0
-1
No files found.
dlls/ddraw/ddraw.c
View file @
257ee8cc
...
...
@@ -4822,7 +4822,7 @@ static HRESULT CDECL device_parent_create_swapchain_texture(struct wined3d_devic
return
hr
;
}
ddraw
->
wined3d_frontbuffer
=
wined3d_surface_from_resource
(
wined3d_texture_get_sub_resource
(
*
texture
,
0
))
;
ddraw
->
wined3d_frontbuffer
=
*
texture
;
return
hr
;
}
...
...
dlls/ddraw/ddraw_private.h
View file @
257ee8cc
...
...
@@ -92,7 +92,7 @@ struct ddraw
struct
ddraw_surface
*
primary
;
RECT
primary_lock
;
struct
wined3d_
surfac
e
*
wined3d_frontbuffer
;
struct
wined3d_
textur
e
*
wined3d_frontbuffer
;
struct
wined3d_swapchain
*
wined3d_swapchain
;
HWND
swapchain_window
;
...
...
dlls/ddraw/surface.c
View file @
257ee8cc
...
...
@@ -69,8 +69,8 @@ HRESULT ddraw_surface_update_frontbuffer(struct ddraw_surface *surface, const RE
if
(
read
)
return
DD_OK
;
return
wined3d_
surface_blt
(
surface
->
ddraw
->
wined3d_frontbuffer
,
rect
,
surface
->
wined3d_
surface
,
rect
,
0
,
NULL
,
WINED3D_TEXF_POINT
);
return
wined3d_
texture_blt
(
surface
->
ddraw
->
wined3d_frontbuffer
,
0
,
rect
,
surface
->
wined3d_
texture
,
surface
->
sub_resource_idx
,
rect
,
0
,
NULL
,
WINED3D_TEXF_POINT
);
}
if
(
FAILED
(
hr
=
wined3d_surface_getdc
(
surface
->
wined3d_surface
,
&
surface_dc
)))
...
...
dlls/wined3d/surface.c
View file @
257ee8cc
...
...
@@ -2431,11 +2431,6 @@ do { \
return
WINED3D_OK
;
}
struct
wined3d_surface
*
CDECL
wined3d_surface_from_resource
(
struct
wined3d_resource
*
resource
)
{
return
surface_from_resource
(
resource
);
}
HRESULT
CDECL
wined3d_surface_unmap
(
struct
wined3d_surface
*
surface
)
{
TRACE
(
"surface %p.
\n
"
,
surface
);
...
...
dlls/wined3d/wined3d.spec
View file @
257ee8cc
...
...
@@ -223,7 +223,6 @@
@ cdecl wined3d_stateblock_incref(ptr)
@ cdecl wined3d_surface_blt(ptr ptr ptr ptr long ptr long)
@ cdecl wined3d_surface_from_resource(ptr)
@ cdecl wined3d_surface_get_overlay_position(ptr ptr ptr)
@ cdecl wined3d_surface_get_parent(ptr)
@ cdecl wined3d_surface_get_pitch(ptr)
...
...
include/wine/wined3d.h
View file @
257ee8cc
...
...
@@ -2475,7 +2475,6 @@ ULONG __cdecl wined3d_stateblock_incref(struct wined3d_stateblock *stateblock);
HRESULT
__cdecl
wined3d_surface_blt
(
struct
wined3d_surface
*
dst_surface
,
const
RECT
*
dst_rect
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
DWORD
flags
,
const
WINEDDBLTFX
*
blt_fx
,
enum
wined3d_texture_filter_type
filter
);
struct
wined3d_surface
*
__cdecl
wined3d_surface_from_resource
(
struct
wined3d_resource
*
resource
);
HRESULT
__cdecl
wined3d_surface_get_overlay_position
(
const
struct
wined3d_surface
*
surface
,
LONG
*
x
,
LONG
*
y
);
void
*
__cdecl
wined3d_surface_get_parent
(
const
struct
wined3d_surface
*
surface
);
DWORD
__cdecl
wined3d_surface_get_pitch
(
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