summaryrefslogtreecommitdiff
path: root/geometrymanager.c
diff options
context:
space:
mode:
Diffstat (limited to 'geometrymanager.c')
-rw-r--r--geometrymanager.c14
1 files changed, 14 insertions, 0 deletions
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;
+ }
+
}