Skip to content
Snippets Groups Projects
Commit e76bae77 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

minor cleanup

parent 38078a57
Branches
Tags
No related merge requests found
// $Id: Opengl_Window.cpp,v 1.54 2005-12-17 23:13:20 geuzaine Exp $ // $Id: Opengl_Window.cpp,v 1.55 2005-12-18 18:10:46 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -102,8 +102,6 @@ void myZoom(MousePosition &click1, MousePosition &click2) ...@@ -102,8 +102,6 @@ void myZoom(MousePosition &click1, MousePosition &click2)
MousePosition tmp(click1); MousePosition tmp(click1);
tmp.wnr[0] = 0.5 * (click1.wnr[0] + click2.wnr[0]); tmp.wnr[0] = 0.5 * (click1.wnr[0] + click2.wnr[0]);
tmp.wnr[1] = 0.5 * (click1.wnr[1] + click2.wnr[1]); tmp.wnr[1] = 0.5 * (click1.wnr[1] + click2.wnr[1]);
tmp.t[0] = CTX.t[0];
tmp.t[1] = CTX.t[1];
tmp.recenter(); tmp.recenter();
InitPosition(); InitPosition();
......
// $Id: Draw.cpp,v 1.83 2005-12-17 22:28:16 geuzaine Exp $ // $Id: Draw.cpp,v 1.84 2005-12-18 18:10:46 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -170,6 +170,9 @@ void InitProjection(int x, int y) ...@@ -170,6 +170,9 @@ void InitProjection(int x, int y)
gluPickMatrix((GLdouble) x, (GLdouble) (CTX.viewport[3] - y), gluPickMatrix((GLdouble) x, (GLdouble) (CTX.viewport[3] - y),
5.0, 5.0, (GLint *) CTX.viewport); 5.0, 5.0, (GLint *) CTX.viewport);
// we should generalize the following for cases when the object is
// located far from the z=0 plane
double gradient_zdist, gradient_xyfact; double gradient_zdist, gradient_xyfact;
if(CTX.ortho) { if(CTX.ortho) {
// setting up the near and far clipping planes so that the box is // setting up the near and far clipping planes so that the box is
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment