From 9646021beda08d5042e5d250f613bb426d4f9d82 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 25 May 2015 23:01:11 +0200 Subject: fix side-by-side calculation --- voctocore/lib/videomix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'voctocore') diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py index 7eb823f..379c788 100644 --- a/voctocore/lib/videomix.py +++ b/voctocore/lib/videomix.py @@ -143,6 +143,9 @@ class VideoMix(object): gutter = int(width / 100) self.log.debug('Gutter calculated to %u', gutter) + targetWidth = int((width - gutter) / 2) + targetHeight = int(targetWidth / width * height) + try: y = Config.getint('side-by-side-equal', 'ypos') self.log.debug('Y-Pos configured to %u', y) @@ -150,9 +153,6 @@ class VideoMix(object): y = (height - targetHeight) / 2 self.log.debug('Y-Pos calculated to %u', y) - targetWidth = int((width - gutter) / 2) - targetHeight = int(targetWidth / width * height) - xa = 0 xb = width - targetWidth -- cgit v1.2.3