diff options
Diffstat (limited to 'helpers.c')
-rw-r--r-- | helpers.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -49,6 +49,23 @@ static void DrawRoundedCorners(cPixmap *p, int radius, int x, int y, int width, } } +static void DrawRoundedCornersWithBorder(cPixmap *p, tColor borderColor, int radius, int width, int height) { + if (radius < 3) + return; + p->DrawEllipse(cRect(0,0,radius,radius), borderColor, -2); + p->DrawEllipse(cRect(-1,-1,radius,radius), clrTransparent, -2); + + p->DrawEllipse(cRect(width-radius,0,radius,radius), borderColor, -1); + p->DrawEllipse(cRect(width-radius+1,-1,radius,radius), clrTransparent, -1); + + p->DrawEllipse(cRect(0,height-radius,radius,radius), borderColor, -3); + p->DrawEllipse(cRect(-1,height-radius+1,radius,radius), clrTransparent, -3); + + p->DrawEllipse(cRect(width-radius,height-radius,radius,radius), borderColor, -4); + p->DrawEllipse(cRect(width-radius+1,height-radius+1,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; |