mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
Stop X11DRV_RoundRect calling XDrawArc with -ve width/height params
which it did if either ellipse dimension was zero.
This commit is contained in:
parent
904e20fdd0
commit
b76462c91d
@ -379,8 +379,10 @@ X11DRV_RoundRect( DC *dc, INT32 left, INT32 top, INT32 right,
|
||||
if ((left == right) || (top == bottom))
|
||||
return TRUE;
|
||||
|
||||
ell_width = abs( ell_width * dc->vportExtX / dc->wndExtX );
|
||||
ell_height = abs( ell_height * dc->vportExtY / dc->wndExtY );
|
||||
/* Make sure ell_width and ell_height are >= 1 otherwise XDrawArc gets
|
||||
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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user