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
b76462c9
Commit
b76462c9
authored
Nov 07, 1998
by
Huw D M Davies
Committed by
Alexandre Julliard
Nov 07, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop X11DRV_RoundRect calling XDrawArc with -ve width/height params
which it did if either ellipse dimension was zero.
parent
904e20fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
graphics.c
graphics/x11drv/graphics.c
+4
-2
No files found.
graphics/x11drv/graphics.c
View file @
b76462c9
...
@@ -379,8 +379,10 @@ X11DRV_RoundRect( DC *dc, INT32 left, INT32 top, INT32 right,
...
@@ -379,8 +379,10 @@ X11DRV_RoundRect( DC *dc, INT32 left, INT32 top, INT32 right,
if
((
left
==
right
)
||
(
top
==
bottom
))
if
((
left
==
right
)
||
(
top
==
bottom
))
return
TRUE
;
return
TRUE
;
ell_width
=
abs
(
ell_width
*
dc
->
vportExtX
/
dc
->
wndExtX
);
/* Make sure ell_width and ell_height are >= 1 otherwise XDrawArc gets
ell_height
=
abs
(
ell_height
*
dc
->
vportExtY
/
dc
->
wndExtY
);
called with width/height < 0 */
ell_width
=
MAX
(
abs
(
ell_width
*
dc
->
vportExtX
/
dc
->
wndExtX
),
1
);
ell_height
=
MAX
(
abs
(
ell_height
*
dc
->
vportExtY
/
dc
->
wndExtY
),
1
);
/* Fix the coordinates */
/* Fix the coordinates */
...
...
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