mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
gdi32: Fix rounding error for odd ellipse sizes in CreateRoundRectRgn.
This commit is contained in:
parent
29c1b8fa08
commit
53c53126d5
1 changed files with 1 additions and 1 deletions
|
@ -824,12 +824,12 @@ HRGN WINAPI CreateRoundRectRgn( INT left, INT top,
|
|||
rects[i].top = top + i;
|
||||
rects[i].bottom = rects[i].top + 1;
|
||||
}
|
||||
rects[i - 1].bottom = bottom - ellipse_height + i; /* extend to bottom of rectangle */
|
||||
for (; i < ellipse_height; i++)
|
||||
{
|
||||
rects[i].top = bottom - ellipse_height + i;
|
||||
rects[i].bottom = rects[i].top + 1;
|
||||
}
|
||||
rects[ellipse_height / 2].top = top + ellipse_height / 2; /* extend to top of rectangle */
|
||||
|
||||
hrgn = alloc_gdi_handle( &obj->header, OBJ_REGION, ®ion_funcs );
|
||||
|
||||
|
|
Loading…
Reference in a new issue