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
747d1631
Commit
747d1631
authored
Jul 31, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Compute the line parameters using the cropped coordinates to avoid overflows.
parent
76cb174d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
objects.c
dlls/gdi32/dibdrv/objects.c
+3
-3
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
747d1631
...
...
@@ -616,7 +616,7 @@ static BOOL solid_pen_line(dibdrv_physdev *pdev, POINT *start, POINT *end, DWORD
struct
line_params
line_params
;
POINT
p1
=
crop_coords
(
*
start
),
p2
=
crop_coords
(
*
end
);
init_bres_params
(
start
,
end
,
&
clip_params
,
&
line_params
,
&
rect
);
init_bres_params
(
&
p1
,
&
p2
,
&
clip_params
,
&
line_params
,
&
rect
);
if
(
!
get_clipped_rects
(
&
pdev
->
dib
,
&
rect
,
pdev
->
clip
,
&
clipped_rects
))
return
TRUE
;
for
(
i
=
0
;
i
<
clipped_rects
.
count
;
i
++
)
{
...
...
@@ -762,7 +762,7 @@ static BOOL solid_pen_line_region( dibdrv_physdev *pdev, POINT *start, POINT *en
struct
line_params
line_params
;
POINT
p1
=
crop_coords
(
*
start
),
p2
=
crop_coords
(
*
end
);
init_bres_params
(
start
,
end
,
&
clip_params
,
&
line_params
,
&
rect
);
init_bres_params
(
&
p1
,
&
p2
,
&
clip_params
,
&
line_params
,
&
rect
);
if
(
clip_rect_to_dib
(
&
pdev
->
dib
,
&
rect
))
{
POINT
clipped_start
,
clipped_end
;
...
...
@@ -1030,7 +1030,7 @@ static BOOL dashed_pen_line(dibdrv_physdev *pdev, POINT *start, POINT *end)
struct
line_params
line_params
;
POINT
p1
=
crop_coords
(
*
start
),
p2
=
crop_coords
(
*
end
);
init_bres_params
(
start
,
end
,
&
clip_params
,
&
line_params
,
&
rect
);
init_bres_params
(
&
p1
,
&
p2
,
&
clip_params
,
&
line_params
,
&
rect
);
get_clipped_rects
(
&
pdev
->
dib
,
&
rect
,
pdev
->
clip
,
&
clipped_rects
);
for
(
i
=
0
;
i
<
clipped_rects
.
count
;
i
++
)
{
...
...
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