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
34a959c6
Commit
34a959c6
authored
May 26, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement IWineD3DSurface::BltFast.
parent
f8dea2d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
surface.c
dlls/wined3d/surface.c
+32
-2
No files found.
dlls/wined3d/surface.c
View file @
34a959c6
...
...
@@ -2481,8 +2481,38 @@ HRESULT WINAPI IWineD3DSurfaceImpl_Restore(IWineD3DSurface *iface) {
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_BltFast
(
IWineD3DSurface
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
IWineD3DSurface
*
Source
,
RECT
*
rsrc
,
DWORD
trans
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
srcImpl
=
(
IWineD3DSurfaceImpl
*
)
Source
;
TRACE
(
"(%p)->(%ld, %ld, %p, %p, %08lx
\n
"
,
iface
,
dstx
,
dsty
,
Source
,
rsrc
,
trans
);
/* Special cases for RenderTargets */
if
(
(
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
||
(
srcImpl
&&
(
srcImpl
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
))
{
RECT
SrcRect
,
DstRect
;
if
(
rsrc
)
{
SrcRect
.
left
=
rsrc
->
left
;
SrcRect
.
top
=
rsrc
->
top
;
SrcRect
.
bottom
=
rsrc
->
bottom
;
SrcRect
.
right
=
rsrc
->
right
;
}
else
{
SrcRect
.
left
=
0
;
SrcRect
.
top
=
0
;
SrcRect
.
right
=
srcImpl
->
currentDesc
.
Width
;
SrcRect
.
bottom
=
srcImpl
->
currentDesc
.
Height
;
}
DstRect
.
left
=
dstx
;
DstRect
.
top
=
dsty
;
DstRect
.
right
=
dstx
+
SrcRect
.
right
-
SrcRect
.
left
;
DstRect
.
bottom
=
dsty
+
SrcRect
.
bottom
-
SrcRect
.
top
;
if
(
IWineD3DSurfaceImpl_BltOverride
(
This
,
&
DstRect
,
Source
,
&
SrcRect
,
0
,
NULL
)
==
WINED3D_OK
)
return
WINED3D_OK
;
}
return
IWineGDISurfaceImpl_BltFast
(
iface
,
dstx
,
dsty
,
Source
,
rsrc
,
trans
);
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_SetPixelFormat
(
IWineD3DSurface
*
iface
,
WINED3DFORMAT
Format
,
BYTE
*
Surface
,
DWORD
Size
)
{
...
...
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