diff options
Diffstat (limited to 'displaymessage.c')
-rw-r--r-- | displaymessage.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/displaymessage.c b/displaymessage.c index 780d17e..cc831a3 100644 --- a/displaymessage.c +++ b/displaymessage.c @@ -46,11 +46,13 @@ void cNopacityDisplayMessage::SetMessage(eMessageType Type, const char *Text) { } pixmapBackground->Fill(clrBlack); pixmap->Fill(col); - cImageLoader imgLoader; - imgLoader.DrawBackground2(Theme.Color(clrMessageBlend), col, width-2, height-2); - pixmap->DrawImage(cPoint(1, 1), imgLoader.GetImage()); + if (config.doBlending) { + cImageLoader imgLoader; + imgLoader.DrawBackground2(Theme.Color(clrMessageBlend), col, width-2, height-2); + pixmap->DrawImage(cPoint(1, 1), imgLoader.GetImage()); + } int textWidth = font->Width(Text); - pixmap->DrawText(cPoint((width - textWidth) / 2, (height - font->Height()) / 2), Text, Theme.Color(clrMessageFont), clrTransparent, font); + pixmap->DrawText(cPoint((width - textWidth) / 2, (height - font->Height()) / 2), Text, Theme.Color(clrMessageFont), (config.doBlending)?clrTransparent:col, font); if (config.messageFadeTime) Start(); } |