Skip to content

Commit

Permalink
Merge pull request vurtun#527 from DeXP/gdip
Browse files Browse the repository at this point in the history
GDI+ nk_gdip_fill_rect background fix
  • Loading branch information
vurtun authored Oct 4, 2017
2 parents 0b95e3e + ecee581 commit c582959
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/gdip/nuklear_gdip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c582959

Please sign in to comment.