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
7bcd8fa2
Commit
7bcd8fa2
authored
Sep 22, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Copy bits in the correct order for the overlap case in the individual copy_rect functions.
parent
5fd305c3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+5
-5
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+1
-1
primitives.c
dlls/gdi32/dibdrv/primitives.c
+0
-0
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
7bcd8fa2
...
...
@@ -478,7 +478,7 @@ static DWORD copy_rect( dib_info *dst, const RECT *dst_rect, const dib_info *src
origin
.
y
=
src_rect
->
top
;
overlap
=
get_overlap
(
dst
,
dst_rect
,
src
,
src_rect
);
if
(
clip
==
NULL
)
dst
->
funcs
->
copy_rect
(
dst
,
dst_rect
,
src
,
&
origin
,
rop2
);
if
(
clip
==
NULL
)
dst
->
funcs
->
copy_rect
(
dst
,
dst_rect
,
src
,
&
origin
,
rop2
,
overlap
);
else
{
clip_data
=
get_wine_region
(
clip
);
...
...
@@ -492,7 +492,7 @@ static DWORD copy_rect( dib_info *dst, const RECT *dst_rect, const dib_info *src
{
origin
.
x
=
src_rect
->
left
+
clipped_rect
.
left
-
dst_rect
->
left
;
origin
.
y
=
src_rect
->
top
+
clipped_rect
.
top
-
dst_rect
->
top
;
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
);
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
,
overlap
);
}
}
}
...
...
@@ -509,7 +509,7 @@ static DWORD copy_rect( dib_info *dst, const RECT *dst_rect, const dib_info *src
{
origin
.
x
=
src_rect
->
left
+
clipped_rect
.
left
-
dst_rect
->
left
;
origin
.
y
=
src_rect
->
top
+
clipped_rect
.
top
-
dst_rect
->
top
;
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
);
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
,
overlap
);
}
}
}
...
...
@@ -528,7 +528,7 @@ static DWORD copy_rect( dib_info *dst, const RECT *dst_rect, const dib_info *src
{
origin
.
x
=
src_rect
->
left
+
clipped_rect
.
left
-
dst_rect
->
left
;
origin
.
y
=
src_rect
->
top
+
clipped_rect
.
top
-
dst_rect
->
top
;
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
);
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
,
overlap
);
}
}
}
...
...
@@ -541,7 +541,7 @@ static DWORD copy_rect( dib_info *dst, const RECT *dst_rect, const dib_info *src
{
origin
.
x
=
src_rect
->
left
+
clipped_rect
.
left
-
dst_rect
->
left
;
origin
.
y
=
src_rect
->
top
+
clipped_rect
.
top
-
dst_rect
->
top
;
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
);
dst
->
funcs
->
copy_rect
(
dst
,
&
clipped_rect
,
src
,
&
origin
,
rop2
,
overlap
);
}
}
}
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
7bcd8fa2
...
...
@@ -126,7 +126,7 @@ typedef struct primitive_funcs
{
void
(
*
solid_rects
)(
const
dib_info
*
dib
,
int
num
,
const
RECT
*
rc
,
DWORD
and
,
DWORD
xor
);
void
(
*
pattern_rects
)(
const
dib_info
*
dib
,
int
num
,
const
RECT
*
rc
,
const
POINT
*
orign
,
const
dib_info
*
brush
,
void
*
and_bits
,
void
*
xor_bits
);
void
(
*
copy_rect
)(
const
dib_info
*
dst
,
const
RECT
*
rc
,
const
dib_info
*
src
,
const
POINT
*
origin
,
int
rop2
);
void
(
*
copy_rect
)(
const
dib_info
*
dst
,
const
RECT
*
rc
,
const
dib_info
*
src
,
const
POINT
*
origin
,
int
rop2
,
int
overlap
);
DWORD
(
*
colorref_to_pixel
)(
const
dib_info
*
dib
,
COLORREF
color
);
BOOL
(
*
convert_to
)(
dib_info
*
dst
,
const
dib_info
*
src
,
const
RECT
*
src_rect
);
BOOL
(
*
create_rop_masks
)(
const
dib_info
*
dib
,
const
dib_info
*
hatch
,
const
rop_mask
*
fg
,
const
rop_mask
*
bg
,
rop_mask_bits
*
bits
);
...
...
dlls/gdi32/dibdrv/primitives.c
View file @
7bcd8fa2
This diff is collapsed.
Click to expand it.
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