Skip to content

Commit

Permalink
fix math, reduce height as well
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Dec 13, 2023
1 parent 46e9c98 commit 8acc274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3887,11 +3887,12 @@ void FFakeStereoRenderingHook::adjust_view_rect(FFakeStereoRendering* stereo, in

if (true_index < 2) {
*w = *w / 8;
*h = *h / 8;
*x += *w * true_index;
} else {
*x += ((*w / 8) * 2);
*w = (*w - *x) / 2;
*x += *w * true_index;
*x += *w * (true_index % 2);
}
}

Expand Down

0 comments on commit 8acc274

Please sign in to comment.