paint.cc: fix y offset

old-commit-hash: bbc289b6711b958336cbaf87edede10050385867
This commit is contained in:
Willem Melching
2020-12-14 13:37:55 +01:00
parent 3ff500dda1
commit 2edf720d53
+2 -2
View File
@@ -22,7 +22,7 @@ extern "C"{
// TODO: this is also hardcoded in common/transformations/camera.py
// TODO: choose based on frame input size
#ifdef QCOM2
const float y_offset = 0.0;
const float y_offset = 200.0;
const float zoom = 1.1;
const mat3 intrinsic_matrix = (mat3){{
2648.0, 0.0, 1928.0/2,
@@ -733,7 +733,7 @@ void ui_nvg_init(UIState *s) {
const mat4 frame_transform = {{
zx, 0.0, 0.0, 0.0,
0.0, zy, 0.0, -y_offset / s->video_rect.h * zy,
0.0, zy, 0.0, -y_offset / s->video_rect.h * 2,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0,
}};