summaryrefslogtreecommitdiff
path: root/displaymessage.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 /displaymessage.c
parent8d889c5ee416bdd82c7316618dda67abcab0edcc (diff)
downloadskin-nopacity-173a2a7d868a4ce5d2355e30ffe7bd6a2e486007.tar.gz
skin-nopacity-173a2a7d868a4ce5d2355e30ffe7bd6a2e486007.tar.bz2
fixed a bug in displaymessage
Diffstat (limited to 'displaymessage.c')
-rw-r--r--displaymessage.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/displaymessage.c b/displaymessage.c
index c484614..2dae835 100644
--- a/displaymessage.c
+++ b/displaymessage.c
@@ -51,22 +51,21 @@ void cNopacityDisplayMessage::SetMessage(eMessageType Type, const char *Text) {
break;
}
- pixmapBackground->Fill(clrTransparent);
pixmap->Fill(clrTransparent);
if (config.GetValue("displayType") == dtGraphical) {
+ pixmapBackground->Fill(clrTransparent);
cImage *imgBack = imgCache->GetSkinElement(seType);
if (imgBack) {
- pixmap->DrawImage(cPoint(0, 0), *imgBack);
+ pixmapBackground->DrawImage(cPoint(0, 0), *imgBack);
}
} else {
+ pixmapBackground->Fill(col);
if (config.GetValue("displayType") == dtBlending) {
cImage imgBack = imgCache->GetBackground(Theme.Color(clrMessageBlend), col, geoManager->messageWidth-2, geoManager->messageHeight-2, true);
- pixmap->DrawImage(cPoint(1, 1), imgBack);
- } else {
- pixmap->Fill(clrTransparent);
+ pixmapBackground->DrawImage(cPoint(1, 1), imgBack);
}
if (config.GetValue("roundedCorners")) {
- DrawRoundedCornersWithBorder(pixmap, col, config.GetValue("cornerRadius"), geoManager->messageWidth, geoManager->messageHeight, pixmapBackground);
+ DrawRoundedCornersWithBorder(pixmapBackground, col, config.GetValue("cornerRadius"), geoManager->messageWidth, geoManager->messageHeight);
}
}
int textWidth = fontManager->messageText->Width(Text);
@@ -74,7 +73,7 @@ void cNopacityDisplayMessage::SetMessage(eMessageType Type, const char *Text) {
(geoManager->messageHeight - fontManager->messageText->Height()) / 2),
Text,
colFont,
- (config.GetValue("displayType") != dtFlat)?clrTransparent:col,
+ clrTransparent,
fontManager->messageText);
if (FadeTime)
Start();