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
b67f39cc
Commit
b67f39cc
authored
Jan 22, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Merge rectangles horizontally when possible in CreatePolyPolygonRgn.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50539
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70d12630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
region.c
dlls/gdi32/region.c
+6
-3
No files found.
dlls/gdi32/region.c
View file @
b67f39cc
...
...
@@ -2613,12 +2613,15 @@ static void scan_convert( WINEREGION *obj, EdgeTable *ET, INT mode, const RECT *
{
obj
->
rects
[
obj
->
numRects
].
left
=
active
->
bres
.
minor_axis
;
obj
->
rects
[
obj
->
numRects
].
top
=
y
;
obj
->
rects
[
obj
->
numRects
].
bottom
=
y
+
1
;
}
else
if
(
obj
->
rects
[
obj
->
numRects
].
left
!=
active
->
bres
.
minor_axis
)
{
obj
->
rects
[
obj
->
numRects
].
right
=
active
->
bres
.
minor_axis
;
obj
->
rects
[
obj
->
numRects
].
bottom
=
y
+
1
;
obj
->
numRects
++
;
/* create new rect only if we can't merge with the previous one */
if
(
!
obj
->
numRects
||
obj
->
rects
[
obj
->
numRects
-
1
].
top
!=
y
||
obj
->
rects
[
obj
->
numRects
-
1
].
right
<
obj
->
rects
[
obj
->
numRects
].
left
)
obj
->
numRects
++
;
obj
->
rects
[
obj
->
numRects
-
1
].
right
=
active
->
bres
.
minor_axis
;
}
first
=
!
first
;
}
...
...
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