summaryrefslogtreecommitdiff
path: root/helpers.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-01 13:59:37 +0100
committerlouis <louis.braun@gmx.de>2013-11-01 13:59:37 +0100
commit173a2a7d868a4ce5d2355e30ffe7bd6a2e486007 (patch)
tree05906ee8850f9d8d8bff5cc7f61bf28876f6fe33 /helpers.c
parent8d889c5ee416bdd82c7316618dda67abcab0edcc (diff)
downloadskin-nopacity-173a2a7d868a4ce5d2355e30ffe7bd6a2e486007.tar.gz
skin-nopacity-173a2a7d868a4ce5d2355e30ffe7bd6a2e486007.tar.bz2
fixed a bug in displaymessage
Diffstat (limited to 'helpers.c')
-rw-r--r--helpers.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/helpers.c b/helpers.c
index 249bc44..97b2364 100644
--- a/helpers.c
+++ b/helpers.c
@@ -48,29 +48,20 @@ 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, cPixmap *pBack = NULL) {
+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);
- if (pBack)
- pBack->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);
- if (pBack)
- pBack->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);
- if (pBack)
- pBack->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);
- if (pBack)
- pBack->DrawEllipse(cRect(width-radius+1,height-radius+1,radius,radius), clrTransparent, -4);
-
}
static cSize ScaleToFit(int widthMax, int heightMax, int widthOriginal, int heightOriginal) {