summaryrefslogtreecommitdiff
path: root/voctocore/lib
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-25 23:01:11 +0200
committerMaZderMind <github@mazdermind.de>2015-05-25 23:01:11 +0200
commit9646021beda08d5042e5d250f613bb426d4f9d82 (patch)
tree1b13ecfbdfc1891834932b4afc6df99bc4dade8d /voctocore/lib
parentad995edffb27d8cc0dd25c1a443cb38f1c678ec2 (diff)
fix side-by-side calculation
Diffstat (limited to 'voctocore/lib')
-rw-r--r--voctocore/lib/videomix.py6
1 files changed, 3 insertions, 3 deletions
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