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
0c840f66
Commit
0c840f66
authored
Dec 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Compute the correct rectangle interior when using wide pens.
parent
edd5ca71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
graphics.c
dlls/gdi32/dibdrv/graphics.c
+4
-6
objects.c
dlls/gdi32/dibdrv/objects.c
+2
-2
No files found.
dlls/gdi32/dibdrv/graphics.c
View file @
0c840f66
...
@@ -590,12 +590,10 @@ BOOL dibdrv_Rectangle( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
...
@@ -590,12 +590,10 @@ BOOL dibdrv_Rectangle( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
pdev
->
pen_lines
(
pdev
,
4
,
pts
,
TRUE
);
pdev
->
pen_lines
(
pdev
,
4
,
pts
,
TRUE
);
/* FIXME: Will need updating when we support wide pens */
rect
.
left
+=
(
pdev
->
pen_width
+
1
)
/
2
;
rect
.
top
+=
(
pdev
->
pen_width
+
1
)
/
2
;
rect
.
left
+=
1
;
rect
.
right
-=
(
pdev
->
pen_width
+
2
)
/
2
;
rect
.
top
+=
1
;
rect
.
bottom
-=
(
pdev
->
pen_width
+
2
)
/
2
;
rect
.
right
-=
1
;
rect
.
bottom
-=
1
;
brush_rect
(
pdev
,
&
rect
,
GetROP2
(
dev
->
hdc
)
);
brush_rect
(
pdev
,
&
rect
,
GetROP2
(
dev
->
hdc
)
);
...
...
dlls/gdi32/dibdrv/objects.c
View file @
0c840f66
...
@@ -1266,9 +1266,9 @@ static inline int get_pen_device_width( dibdrv_physdev *pdev, LOGPEN *pen )
...
@@ -1266,9 +1266,9 @@ static inline int get_pen_device_width( dibdrv_physdev *pdev, LOGPEN *pen )
pts
[
0
].
x
=
pts
[
0
].
y
=
pts
[
1
].
y
=
0
;
pts
[
0
].
x
=
pts
[
0
].
y
=
pts
[
1
].
y
=
0
;
pts
[
1
].
x
=
width
;
pts
[
1
].
x
=
width
;
LPtoDP
(
pdev
->
dev
.
hdc
,
pts
,
2
);
LPtoDP
(
pdev
->
dev
.
hdc
,
pts
,
2
);
width
=
max
(
abs
(
pts
[
1
].
x
-
pts
[
0
].
x
),
1
);
width
=
abs
(
pts
[
1
].
x
-
pts
[
0
].
x
);
}
}
return
width
;
return
max
(
width
,
1
)
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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