From fa60be159361f23c16876520b3b34da970b0e0f7 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 3 Apr 2019 06:13:23 +0200 Subject: [PATCH] source-mirror: Fix incorrect source alignment This bug was introduced in 0.6.0 and had sources render half offscreen to the left, as the alignment 4 meant "center left" instead of just "center". --- source/sources/source-mirror.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sources/source-mirror.cpp b/source/sources/source-mirror.cpp index bc76b4c4..13f0795b 100644 --- a/source/sources/source-mirror.cpp +++ b/source/sources/source-mirror.cpp @@ -508,10 +508,10 @@ void source::mirror::mirror_instance::video_tick(float time) info.rot = 0; info.scale.x = 1.f; info.scale.y = 1.f; - info.alignment = 4; + info.alignment = 5; info.bounds.x = float_t(this->get_width()); info.bounds.y = float_t(this->get_height()); - info.bounds_alignment = 4; + info.bounds_alignment = 5; info.bounds_type = obs_bounds_type::OBS_BOUNDS_STRETCH; if (this->m_rescale_enabled) { info.bounds_type = this->m_rescale_bounds;