mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 13:55:07 +00:00
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".
This commit is contained in:
parent
af023f9132
commit
fa60be1593
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue