From 1ea5cecda52336274ba20b7041553da10600909a Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 4 Jun 2022 15:04:35 +0200 Subject: 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. --- geometrymanager.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'geometrymanager.c') diff --git a/geometrymanager.c b/geometrymanager.c index 91c8459..4ed5828 100644 --- a/geometrymanager.c +++ b/geometrymanager.c @@ -242,4 +242,18 @@ void cGeometryManager::SetGeometry(void) { volumeProgressBarHeight = 0.3 * volumeHeight; if (volumeProgressBarHeight % 2 != 0) volumeProgressBarHeight++; + + // Volume Sizes for Replay + if (config.GetValue("displayReplayVolume") == vbSimple) { + replayVolumeLeft = replayOsdWidth / 3; + replayVolumeTop = replayHeight - replayFooterHeight; + replayVolumeWidth = replayOsdWidth / 3; + replayVolumeHeight = replayFooterHeight; + } else { + replayVolumeLeft = (replayOsdWidth - volumeWidth) / 2; + replayVolumeTop = replayOsdHeight - volumeHeight - config.GetValue("replayBorderVolumeBottom"); + replayVolumeWidth = volumeWidth; + replayVolumeHeight = volumeHeight; + } + } -- cgit v1.2.3