libgoatvr
changeset 29:ddaa9c764030
minor fix
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 08 Apr 2015 02:32:22 +0300 |
parents | 5136dfcea7b1 |
children | 1a8343ea54ce |
files | src/vr_libovr.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/src/vr_libovr.c Mon Apr 06 05:17:11 2015 +0300 1.2 +++ b/src/vr_libovr.c Wed Apr 08 02:32:22 2015 +0300 1.3 @@ -102,6 +102,8 @@ 1.4 set_option_int(optdb, VR_LEYE_YRES, eye_res[0].h); 1.5 set_option_int(optdb, VR_REYE_XRES, eye_res[1].w); 1.6 set_option_int(optdb, VR_REYE_YRES, eye_res[1].h); 1.7 + set_option_int(optdb, VR_RENDER_XRES, eye_res[0].w + eye_res[1].w); 1.8 + set_option_int(optdb, VR_RENDER_YRES, eye_res[0].h > eye_res[1].h ? eye_res[0].h : eye_res[1].h); 1.9 set_option_float(optdb, VR_RENDER_RES_SCALE, 1.0); 1.10 set_option_float(optdb, VR_EYE_HEIGHT, ovrHmd_GetFloat(hmd, OVR_KEY_EYE_HEIGHT, OVR_DEFAULT_EYE_HEIGHT)); 1.11 set_option_float(optdb, VR_IPD, ovrHmd_GetFloat(hmd, OVR_KEY_IPD, OVR_DEFAULT_IPD));