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

forgot scaling
parent ae2e4bd3
No related branches found
No related tags found
No related merge requests found
// $Id: Draw.cpp,v 1.89 2005-12-21 02:01:28 geuzaine Exp $ // $Id: Draw.cpp,v 1.90 2005-12-21 02:11:47 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -240,7 +240,7 @@ void InitProjection(int x, int y) ...@@ -240,7 +240,7 @@ void InitProjection(int x, int y)
else{ // radial else{ // radial
double cx = grad_xy * (CTX.vxmin + CTX.vxmax) / 2.; double cx = grad_xy * (CTX.vxmin + CTX.vxmax) / 2.;
double cy = grad_xy * (CTX.vymin + CTX.vymax) / 2.; double cy = grad_xy * (CTX.vymin + CTX.vymax) / 2.;
double r = MAX(CTX.vxmax - CTX.vxmin, CTX.vymax - CTX.vymin) / 2.; double r = grad_xy * MAX(CTX.vxmax - CTX.vxmin, CTX.vymax - CTX.vymin) / 2.;
glBegin(GL_TRIANGLE_FAN); glBegin(GL_TRIANGLE_FAN);
glColor4ubv((GLubyte *) & CTX.color.bg_grad); glColor4ubv((GLubyte *) & CTX.color.bg_grad);
glVertex3d(cx, cy, 0.); glVertex3d(cx, cy, 0.);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment