summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-09-16 10:03:33 +0200
committerlouis <louis.braun@gmx.de>2013-09-16 10:03:33 +0200
commit5e4beec1e5f245d81eda949e53d221858d24f512 (patch)
tree82a52f39883528ea27ab6b56e86f034b6296f2a8 /displaymenuview.c
parent7a5750accdf5603fe64296f0989214413c623c0f (diff)
downloadskin-nopacity-5e4beec1e5f245d81eda949e53d221858d24f512.tar.gz
skin-nopacity-5e4beec1e5f245d81eda949e53d221858d24f512.tar.bz2
rounded corners for message boxes
Diffstat (limited to 'displaymenuview.c')
-rw-r--r--displaymenuview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/displaymenuview.c b/displaymenuview.c
index 55399f3..c513dd4 100644
--- a/displaymenuview.c
+++ b/displaymenuview.c
@@ -826,6 +826,9 @@ void cNopacityDisplayMenuView::DrawMessage(eMessageType Type, const char *Text)
imgLoader.DrawBackground2(Theme.Color(clrMenuBack), col, messageWidth-2, messageHeight-2);
pixmapStatus->DrawImage(cPoint(1, 1), imgLoader.GetImage());
}
+ if (config.roundedCorners) {
+ DrawRoundedCornersWithBorder(pixmapStatus, col, config.cornerRadius, messageWidth, messageHeight);
+ }
int textWidth = fontMessage->Width(Text);
tColor clrFontBack = (config.doBlending)?(clrTransparent):col;
pixmapStatus->DrawText(cPoint((messageWidth - textWidth) / 2, (messageHeight - fontMessage->Height()) / 2), Text, Theme.Color(clrMenuFontMessages), clrFontBack, fontMessage);