aux/util: fix truncation warning

This commit is contained in:
Ryan Pavlik 2019-05-06 11:57:33 -05:00 committed by Jakob Bornecrantz
parent 287bd1cb06
commit 9d57e158f9

View file

@ -148,8 +148,8 @@ u_device_setup_split_side_by_side(struct xrt_device* xdev,
float h_meters = info->display.h_meters;
float lens_center_x_meters[2] = {
w_meters - info->lens_horizontal_separation_meters / 2.0,
info->lens_horizontal_separation_meters / 2.0,
w_meters - info->lens_horizontal_separation_meters / 2.0f,
info->lens_horizontal_separation_meters / 2.0f,
};
float lens_center_y_meters[2] = {