istereo

diff src/istereo.c @ 36:834503dcb486

fixed the rotated gui problem
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Sep 2011 10:25:03 +0300
parents 23e5d274b2a2
children e60f9d8af28d
line diff
     1.1 --- a/src/istereo.c	Fri Sep 09 10:03:42 2011 +0300
     1.2 +++ b/src/istereo.c	Fri Sep 09 10:25:03 2011 +0300
     1.3 @@ -136,13 +136,12 @@
     1.4  		render(tsec);
     1.5  	} else {
     1.6  		glViewport(0, 0, view_xsz, view_ysz);
     1.7 -		cam_aspect((float)view_ysz / (float)view_xsz);
     1.8 +		cam_aspect((float)view_xsz / (float)view_ysz);
     1.9  
    1.10  		gl_matrix_mode(GL_PROJECTION);
    1.11  		gl_load_identity();
    1.12  		cam_proj_matrix();
    1.13 -		gl_rotatef(-90, 0, 0, 1);
    1.14 -		
    1.15 +
    1.16  		gl_matrix_mode(GL_MODELVIEW);
    1.17  		gl_load_identity();
    1.18  		cam_view_matrix();