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
3bb1ea3d
Commit
3bb1ea3d
authored
Mar 19, 2008
by
Luis Javier Merino
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: BltFast dealing correctly with overlapping src and dest.
parent
03f18eb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
surface_base.c
dlls/wined3d/surface_base.c
+18
-3
No files found.
dlls/wined3d/surface_base.c
View file @
3bb1ea3d
...
...
@@ -1613,13 +1613,28 @@ IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface,
else
{
int
width
=
w
*
bpp
;
INT
sbufpitch
,
dbufpitch
;
TRACE
(
"NO color key copy
\n
"
);
/* Handle overlapping surfaces */
if
(
sbuf
<
dbuf
)
{
sbuf
+=
(
h
-
1
)
*
slock
.
Pitch
;
dbuf
+=
(
h
-
1
)
*
dlock
.
Pitch
;
sbufpitch
=
-
slock
.
Pitch
;
dbufpitch
=
-
dlock
.
Pitch
;
}
else
{
sbufpitch
=
slock
.
Pitch
;
dbufpitch
=
dlock
.
Pitch
;
}
for
(
y
=
0
;
y
<
h
;
y
++
)
{
/* This is pretty easy, a line for line memcpy */
mem
cpy
(
dbuf
,
sbuf
,
width
);
sbuf
+=
s
lock
.
P
itch
;
dbuf
+=
d
lock
.
P
itch
;
mem
move
(
dbuf
,
sbuf
,
width
);
sbuf
+=
s
bufp
itch
;
dbuf
+=
d
bufp
itch
;
}
TRACE
(
"Copy done
\n
"
);
}
...
...
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