Merge pull request #527 from DeXP/gdip

GDI+ nk_gdip_fill_rect background fix
master
Micha Mettke 2017-10-04 15:08:07 +02:00 committed by GitHub
commit c582959eea
1 changed files with 3 additions and 2 deletions

View File

@ -458,8 +458,9 @@ 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 - 1, y, w - d + 2, h);
GdipFillRectangleI(gdip.memory, gdip.brush, x, y + r - 1, w, h - d + 2);
GdipFillRectangleI(gdip.memory, gdip.brush, x + r, y, w - d, h);
GdipFillRectangleI(gdip.memory, gdip.brush, x, y + r, r, h - d);
GdipFillRectangleI(gdip.memory, gdip.brush, x + w - r, y + r, r, h - d);
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);