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
c124fd6f
Commit
c124fd6f
authored
Nov 25, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X11DRV_DrawArc: Don't overwrite the ENDCAP style.
parent
47977c4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
graphics.c
graphics/x11drv/graphics.c
+1
-4
No files found.
graphics/x11drv/graphics.c
View file @
c124fd6f
...
...
@@ -337,7 +337,7 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
INT
xend
,
INT
yend
,
INT
lines
)
{
INT
xcenter
,
ycenter
,
istart_angle
,
idiff_angle
;
INT
width
,
oldwidth
,
oldendcap
;
INT
width
,
oldwidth
;
double
start_angle
,
end_angle
;
XPoint
points
[
4
];
BOOL
update
=
FALSE
;
...
...
@@ -362,7 +362,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
{
POINT
tmp
=
start
;
start
=
end
;
end
=
tmp
;
}
oldwidth
=
width
=
physDev
->
pen
.
width
;
oldendcap
=
physDev
->
pen
.
endcap
;
if
(
!
width
)
width
=
1
;
if
(
physDev
->
pen
.
style
==
PS_NULL
)
width
=
0
;
...
...
@@ -377,7 +376,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
}
if
(
width
==
0
)
width
=
1
;
/* more accurate */
physDev
->
pen
.
width
=
width
;
physDev
->
pen
.
endcap
=
PS_ENDCAP_SQUARE
;
xcenter
=
(
rc
.
right
+
rc
.
left
)
/
2
;
ycenter
=
(
rc
.
bottom
+
rc
.
top
)
/
2
;
...
...
@@ -482,7 +480,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
X11DRV_UnlockDIBSection
(
physDev
,
update
);
physDev
->
pen
.
width
=
oldwidth
;
physDev
->
pen
.
endcap
=
oldendcap
;
return
TRUE
;
}
...
...
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