diff options
author | louis <louis.braun@gmx.de> | 2013-11-01 13:59:37 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-01 13:59:37 +0100 |
commit | 173a2a7d868a4ce5d2355e30ffe7bd6a2e486007 (patch) | |
tree | 05906ee8850f9d8d8bff5cc7f61bf28876f6fe33 /helpers.c | |
parent | 8d889c5ee416bdd82c7316618dda67abcab0edcc (diff) | |
download | skin-nopacity-173a2a7d868a4ce5d2355e30ffe7bd6a2e486007.tar.gz skin-nopacity-173a2a7d868a4ce5d2355e30ffe7bd6a2e486007.tar.bz2 |
fixed a bug in displaymessage
Diffstat (limited to 'helpers.c')
-rw-r--r-- | helpers.c | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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) { |