From 7ab7327fa492298d5fa85a40340892905f3995fc Mon Sep 17 00:00:00 2001 From: Dmitry Hrabrov Date: Sat, 7 Jan 2017 14:26:26 +0300 Subject: [PATCH] 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. --- demo/gdip/nuklear_gdip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/gdip/nuklear_gdip.h b/demo/gdip/nuklear_gdip.h index fcb6358..750ee5a 100644 --- a/demo/gdip/nuklear_gdip.h +++ b/demo/gdip/nuklear_gdip.h @@ -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);