mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
gdi32: Fix rounding error for odd ellipse sizes in CreateRoundRectRgn.
This commit is contained in:
parent
29c1b8fa08
commit
53c53126d5
@ -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 New Issue
Block a user