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
319a87c8
Commit
319a87c8
authored
Jun 04, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Take into account the DIB rectangles when determining overlap for blits.
parent
90f93e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+6
-6
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
319a87c8
...
...
@@ -438,11 +438,11 @@ static int get_overlap( const dib_info *dst, const RECT *dst_rect,
int
height
,
ret
=
0
;
if
(
dst
->
stride
!=
src
->
stride
)
return
0
;
/* can't be the same dib */
if
(
dst
_rect
->
right
<=
src_rect
->
left
)
return
0
;
if
(
dst
_rect
->
left
>=
src_rect
->
right
)
return
0
;
if
(
dst
->
rect
.
left
+
dst_rect
->
right
<=
src
->
rect
.
left
+
src_rect
->
left
)
return
0
;
if
(
dst
->
rect
.
left
+
dst_rect
->
left
>=
src
->
rect
.
left
+
src_rect
->
right
)
return
0
;
src_top
=
(
const
char
*
)
src
->
bits
.
ptr
+
src_rect
->
top
*
src
->
stride
;
dst_top
=
(
const
char
*
)
dst
->
bits
.
ptr
+
dst_rect
->
top
*
dst
->
stride
;
src_top
=
(
const
char
*
)
src
->
bits
.
ptr
+
(
src
->
rect
.
top
+
src_rect
->
top
)
*
src
->
stride
;
dst_top
=
(
const
char
*
)
dst
->
bits
.
ptr
+
(
dst
->
rect
.
top
+
dst_rect
->
top
)
*
dst
->
stride
;
height
=
(
dst_rect
->
bottom
-
dst_rect
->
top
)
*
dst
->
stride
;
if
(
dst
->
stride
>
0
)
...
...
@@ -460,8 +460,8 @@ static int get_overlap( const dib_info *dst, const RECT *dst_rect,
else
if
(
dst_top
<
src_top
)
ret
|=
OVERLAP_BELOW
;
}
if
(
dst
_rect
->
left
<
src_rect
->
left
)
ret
|=
OVERLAP_LEFT
;
else
if
(
dst
_rect
->
left
>
src_rect
->
left
)
ret
|=
OVERLAP_RIGHT
;
if
(
dst
->
rect
.
left
+
dst_rect
->
left
<
src
->
rect
.
left
+
src_rect
->
left
)
ret
|=
OVERLAP_LEFT
;
else
if
(
dst
->
rect
.
left
+
dst_rect
->
left
>
src
->
rect
.
left
+
src_rect
->
left
)
ret
|=
OVERLAP_RIGHT
;
return
ret
;
}
...
...
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