summaryrefslogtreecommitdiff
path: root/displayreplay.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-04 15:04:35 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-09 13:46:58 +0200
commit1ea5cecda52336274ba20b7041553da10600909a (patch)
tree4a60d442ebd3b942cc446658a45a78201d454087 /displayreplay.c
parent1990be25d8adb1e0630307d46729db90154ac323 (diff)
downloadskin-nopacity-1ea5cecda52336274ba20b7041553da10600909a.tar.gz
skin-nopacity-1ea5cecda52336274ba20b7041553da10600909a.tar.bz2
Add a simple VolumeBox for DisplayReplay
Adds a simpler volume box in DisplayReplay. An setup option is added to change the type of volume box.
Diffstat (limited to 'displayreplay.c')
-rw-r--r--displayreplay.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/displayreplay.c b/displayreplay.c
index 40e278f..2c1350f 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -476,9 +476,14 @@ void cNopacityDisplayReplay::DrawVolume(void) {
int volume = statusMonitor->GetVolume();
if (volume != lastVolume) {
if (!volumeBox) {
- int left = (geoManager->replayWidth - geoManager->volumeWidth) / 2;
- int top = geoManager->replayHeight - geoManager->volumeHeight - config.GetValue("replayBorderVolumeBottom");
- volumeBox = new cNopacityVolumeBox(osd, cRect(left, top, geoManager->volumeWidth, geoManager->volumeHeight), fontManager->volumeText);
+ bool simple = (config.GetValue("displayReplayVolume") == vbSimple) ? true : false;
+ volumeBox = new cNopacityVolumeBox(osd,
+ cRect(geoManager->replayVolumeLeft,
+ geoManager->replayVolumeTop,
+ geoManager->replayVolumeWidth,
+ geoManager->replayVolumeHeight),
+ simple ? fontManager->channelSourceInfo : fontManager->volumeText,
+ simple);
}
volumeBox->SetVolume(volume, MAXVOLUME, volume ? false : true);
lastVolumeTime = time(NULL);