From 4a7a4ce0b33bce9d5e5c3488515d71587047800e Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Thu, 16 Dec 2004 11:22:30 +0000 Subject: [PATCH] *** empty log message *** --- vcg/math/camera.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vcg/math/camera.h b/vcg/math/camera.h index f7b64786..ea31321f 100644 --- a/vcg/math/camera.h +++ b/vcg/math/camera.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log: not supported by cvs2svn $ +Revision 1.11 2004/12/16 11:21:03 ricciodimare +*** empty log message *** + Revision 1.10 2004/12/15 18:45:50 tommyfranken *** empty log message *** @@ -100,13 +103,13 @@ public: bool IsOrtho(){ return (_flags & ORTHO_BIT);} void SetOrtho(bool v, S dist ) { - if(v) _flags |= ORTHO_BIT; - else + if(v) { - _flags &= ~ORTHO_BIT; - viewportM = ( ((viewport[0] * s[0]) * (viewport[1] * s[1])) / f ) * dist; - + _flags |= ORTHO_BIT; + viewportM = ( ((viewport[0] * s[0]) * (viewport[1] * s[1])) / f ) * dist; } + else _flags &= ~ORTHO_BIT; + }; char & UberFlags() {return _flags;}