mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-10 15:58:06 +00:00
d/vive: Fix distortion center config parsing
This commit is contained in:
parent
cb51b32ff1
commit
bd381561d8
|
@ -96,8 +96,8 @@ _get_distortion_properties(struct vive_device *d, const cJSON *eye_transform_jso
|
|||
if (distortion != NULL) {
|
||||
// TODO: store center per color
|
||||
// clang-format off
|
||||
JSON_FLOAT(eye_json, "center_x", &d->distortion[eye].center[0]);
|
||||
JSON_FLOAT(eye_json, "center_y", &d->distortion[eye].center[1]);
|
||||
JSON_FLOAT(distortion, "center_x", &d->distortion[eye].center[0]);
|
||||
JSON_FLOAT(distortion, "center_y", &d->distortion[eye].center[1]);
|
||||
// clang-format on
|
||||
|
||||
// green
|
||||
|
|
Loading…
Reference in a new issue