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
7de4df9f
Commit
7de4df9f
authored
Oct 31, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the wined3d_surface_bltfast() export.
parent
95cba0c0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
28 deletions
+10
-28
surface.c
dlls/wined3d/surface.c
+5
-15
swapchain.c
dlls/wined3d/swapchain.c
+3
-3
wined3d.spec
dlls/wined3d/wined3d.spec
+0
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-0
wined3d.h
include/wine/wined3d.h
+0
-9
No files found.
dlls/wined3d/surface.c
View file @
7de4df9f
...
...
@@ -1816,14 +1816,13 @@ cpu:
}
/* Do not call while under the GL lock. */
HRESULT
CDECL
wined3d_
surface_bltfast
(
struct
wined3d_surface
*
dst_surface
,
DWORD
dst_x
,
DWORD
dst_y
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect_in
,
DWORD
tran
s
)
HRESULT
surface_bltfast
(
struct
wined3d_surface
*
dst_surface
,
DWORD
dst_x
,
DWORD
dst_y
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect_in
,
DWORD
flag
s
)
{
RECT
src_rect
,
dst_rect
;
DWORD
flags
=
0
;
TRACE
(
"dst_surface %p, dst_x %u, dst_y %u, src_surface %p, src_rect_in %s,
tran
s %#x.
\n
"
,
dst_surface
,
dst_x
,
dst_y
,
src_surface
,
wine_dbgstr_rect
(
src_rect_in
),
tran
s
);
TRACE
(
"dst_surface %p, dst_x %u, dst_y %u, src_surface %p, src_rect_in %s,
flag
s %#x.
\n
"
,
dst_surface
,
dst_x
,
dst_y
,
src_surface
,
wine_dbgstr_rect
(
src_rect_in
),
flag
s
);
surface_get_rect
(
src_surface
,
src_rect_in
,
&
src_rect
);
...
...
@@ -1832,15 +1831,6 @@ HRESULT CDECL wined3d_surface_bltfast(struct wined3d_surface *dst_surface, DWORD
dst_rect
.
right
=
dst_x
+
src_rect
.
right
-
src_rect
.
left
;
dst_rect
.
bottom
=
dst_y
+
src_rect
.
bottom
-
src_rect
.
top
;
if
(
trans
&
WINEDDBLTFAST_SRCCOLORKEY
)
flags
|=
WINEDDBLT_KEYSRC
;
if
(
trans
&
WINEDDBLTFAST_DESTCOLORKEY
)
flags
|=
WINEDDBLT_KEYDEST
;
if
(
trans
&
WINEDDBLTFAST_WAIT
)
flags
|=
WINEDDBLT_WAIT
;
if
(
trans
&
WINEDDBLTFAST_DONOTWAIT
)
flags
|=
WINEDDBLT_DONOTWAIT
;
return
wined3d_surface_blt
(
dst_surface
,
&
dst_rect
,
src_surface
,
&
src_rect
,
flags
,
NULL
,
WINED3DTEXF_POINT
);
}
...
...
@@ -2604,7 +2594,7 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
* loading. */
d3dfmt_get_conv
(
dst_surface
,
FALSE
,
TRUE
,
&
format
,
&
convert
);
if
(
convert
!=
NO_CONVERSION
||
format
.
convert
)
return
wined3d_
surface_bltfast
(
dst_surface
,
dst_point
->
x
,
dst_point
->
y
,
src_surface
,
src_rect
,
0
);
return
surface_bltfast
(
dst_surface
,
dst_point
->
x
,
dst_point
->
y
,
src_surface
,
src_rect
,
0
);
context
=
context_acquire
(
dst_surface
->
resource
.
device
,
NULL
);
gl_info
=
context
->
gl_info
;
...
...
dlls/wined3d/swapchain.c
View file @
7de4df9f
...
...
@@ -161,7 +161,7 @@ HRESULT CDECL wined3d_swapchain_get_front_buffer_data(const struct wined3d_swapc
if
(
swapchain
->
presentParms
.
Windowed
)
MapWindowPoints
(
swapchain
->
win_handle
,
NULL
,
&
offset
,
1
);
wined3d_
surface_bltfast
(
dst_surface
,
offset
.
x
,
offset
.
y
,
swapchain
->
front_buffer
,
NULL
,
0
);
surface_bltfast
(
dst_surface
,
offset
.
x
,
offset
.
y
,
swapchain
->
front_buffer
,
NULL
,
0
);
return
WINED3D_OK
;
}
...
...
@@ -476,8 +476,8 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
if
(
swapchain
->
device
->
logo_surface
)
{
/* Blit the logo into the upper left corner of the drawable. */
wined3d_
surface_bltfast
(
swapchain
->
back_buffers
[
0
],
0
,
0
,
swapchain
->
device
->
logo_surface
,
NULL
,
WINEDDBLT
FAST_SRCCOLORKEY
);
surface_bltfast
(
swapchain
->
back_buffers
[
0
],
0
,
0
,
swapchain
->
device
->
logo_surface
,
NULL
,
WINEDDBLT
_KEYSRC
);
}
TRACE
(
"Presenting HDC %p.
\n
"
,
context
->
hdc
);
...
...
dlls/wined3d/wined3d.spec
View file @
7de4df9f
...
...
@@ -200,7 +200,6 @@
@ cdecl wined3d_stateblock_incref(ptr)
@ cdecl wined3d_surface_blt(ptr ptr ptr ptr long ptr long)
@ cdecl wined3d_surface_bltfast(ptr long long ptr ptr long)
@ cdecl wined3d_surface_create(ptr long long long long long long long long long long long ptr ptr ptr)
@ cdecl wined3d_surface_decref(ptr)
@ cdecl wined3d_surface_flip(ptr ptr long)
...
...
dlls/wined3d/wined3d_private.h
View file @
7de4df9f
...
...
@@ -2079,6 +2079,8 @@ static inline GLuint surface_get_texture_name(const struct wined3d_surface *surf
void
surface_add_dirty_rect
(
struct
wined3d_surface
*
surface
,
const
WINED3DBOX
*
dirty_rect
)
DECLSPEC_HIDDEN
;
void
surface_bind
(
struct
wined3d_surface
*
surface
,
struct
wined3d_context
*
context
,
BOOL
srgb
)
DECLSPEC_HIDDEN
;
HRESULT
surface_bltfast
(
struct
wined3d_surface
*
dst_surface
,
DWORD
dst_x
,
DWORD
dst_y
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect_in
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
HRESULT
surface_color_fill
(
struct
wined3d_surface
*
s
,
const
RECT
*
rect
,
const
WINED3DCOLORVALUE
*
color
)
DECLSPEC_HIDDEN
;
GLenum
surface_get_gl_buffer
(
const
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
BOOL
surface_init_sysmem
(
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
...
...
include/wine/wined3d.h
View file @
7de4df9f
...
...
@@ -1285,13 +1285,6 @@ enum wined3d_sysval_semantic
#define WINEDDBLT_DEPTHFILL 0x02000000
#define WINEDDBLT_DONOTWAIT 0x08000000
/* dwTrans for BltFast */
#define WINEDDBLTFAST_NOCOLORKEY 0x00000000
#define WINEDDBLTFAST_SRCCOLORKEY 0x00000001
#define WINEDDBLTFAST_DESTCOLORKEY 0x00000002
#define WINEDDBLTFAST_WAIT 0x00000010
#define WINEDDBLTFAST_DONOTWAIT 0x00000020
/* DDSURFACEDESC.dwFlags */
#define WINEDDSD_CAPS 0x00000001
#define WINEDDSD_HEIGHT 0x00000002
...
...
@@ -2412,8 +2405,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
,
WINED3DTEXTUREFILTERTYPE
filter
);
HRESULT
__cdecl
wined3d_surface_bltfast
(
struct
wined3d_surface
*
dst_surface
,
DWORD
dst_x
,
DWORD
dst_y
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
DWORD
trans
);
HRESULT
__cdecl
wined3d_surface_create
(
struct
wined3d_device
*
device
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format_id
,
BOOL
lockable
,
BOOL
discard
,
UINT
level
,
DWORD
usage
,
WINED3DPOOL
pool
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
WINED3DSURFTYPE
surface_type
,
...
...
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