diff options
author | louis <louis.braun@gmx.de> | 2013-09-16 09:48:12 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-16 09:48:12 +0200 |
commit | 25d83725edb5e34c162f40e6d0140a205250079c (patch) | |
tree | 3dcf0a7cac9e83b06a2a7ad4dbe8d86a37b7ae35 /helpers.c | |
parent | e60811fceae4dc443c2a36da1a6e41dd66a401e7 (diff) | |
download | skin-nopacity-25d83725edb5e34c162f40e6d0140a205250079c.tar.gz skin-nopacity-25d83725edb5e34c162f40e6d0140a205250079c.tar.bz2 |
added some rounded corners
Diffstat (limited to 'helpers.c')
-rw-r--r-- | helpers.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -40,6 +40,15 @@ static void DrawBlendedBackground(cPixmap *pixmap, tColor color, tColor colorBle } } +static void DrawRoundedCorners(cPixmap *p, int radius, int x, int y, int width, int height) { + if (radius > 2) { + p->DrawEllipse(cRect(x, y, radius, radius), clrTransparent, -2); + p->DrawEllipse(cRect(x + width - radius, y , radius, radius), clrTransparent, -1); + p->DrawEllipse(cRect(x, y + height - radius, radius, radius), clrTransparent, -3); + p->DrawEllipse(cRect(x + width - radius, y + height - radius, radius, radius), clrTransparent, -4); + } +} + static int Minimum(int a, int b, int c, int d, int e, int f) { int min = a; if (b < min) min = b; |