nk_gdip_fill_rect filled pies fix

Added 1px overlap near filled pies. There is no empty space between pie and rectangle now. It was especially conspicuous on red theme.
This commit is contained in:
Dmitry Hrabrov 2017-01-07 14:26:26 +03:00 committed by GitHub
parent 5aeddddd74
commit 7ab7327fa4

View File

@ -431,8 +431,8 @@ nk_gdip_fill_rect(short x, short y, unsigned short w,
GdipFillRectangleI(gdip.memory, gdip.brush, x, y, w, h);
} else {
INT d = 2 * r;
GdipFillRectangleI(gdip.memory, gdip.brush, x + r, y, w - d, h);
GdipFillRectangleI(gdip.memory, gdip.brush, x, y + r, w, h - d);
GdipFillRectangleI(gdip.memory, gdip.brush, x + r - 1, y, w - d + 2, h);
GdipFillRectangleI(gdip.memory, gdip.brush, x, y + r - 1, w, h - d + 2);
GdipFillPieI(gdip.memory, gdip.brush, x, y, d, d, 180, 90);
GdipFillPieI(gdip.memory, gdip.brush, x + w - d, y, d, d, 270, 90);
GdipFillPieI(gdip.memory, gdip.brush, x + w - d, y + h - d, d, d, 0, 90);