diff options
author | louis <louis.braun@gmx.de> | 2014-02-01 13:04:22 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-02-01 13:04:22 +0100 |
commit | af70b4e06b5229343a3a68935d84200d637d417b (patch) | |
tree | 2d6f1ae0fb6158f0840c45e4cbae9f9b15317c23 /displaymessage.c | |
parent | 0b29805c23c99922bbade2824d93126bab112316 (diff) | |
download | skin-nopacity-af70b4e06b5229343a3a68935d84200d637d417b.tar.gz skin-nopacity-af70b4e06b5229343a3a68935d84200d637d417b.tar.bz2 |
Fixed bugs that configured OSD top and left values are not correctly used in DisplayChannel, DisplayTracks, DisplayVolume and DisplayMessages
Diffstat (limited to 'displaymessage.c')
-rw-r--r-- | displaymessage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/displaymessage.c b/displaymessage.c index 8d85f8b..f2c9c65 100644 --- a/displaymessage.c +++ b/displaymessage.c @@ -8,7 +8,7 @@ cNopacityDisplayMessage::cNopacityDisplayMessage(cImageCache *imgCache) { FadeTime = config.GetValue("messageFadeTime"); FrameTime = FadeTime / 10; int top = geoManager->osdTop + geoManager->osdHeight - geoManager->messageHeight - config.GetValue("messageBorderBottom"); - int left = (geoManager->osdLeft + geoManager->osdWidth - geoManager->messageWidth) / 2; + int left = geoManager->osdLeft + (geoManager->osdWidth - geoManager->messageWidth) / 2; osd = CreateOsd(left, top, geoManager->messageWidth, geoManager->messageHeight); pixmap = osd->CreatePixmap(2, cRect(0, 0, geoManager->messageWidth, geoManager->messageHeight)); pixmapBackground = osd->CreatePixmap(1, cRect(0, 0, geoManager->messageWidth, geoManager->messageHeight)); |