summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@coffee.donpellegrino.com>2009-09-03 01:44:03 (GMT)
committer Don Pellegrino <don@coffee.donpellegrino.com>2009-09-03 01:44:03 (GMT)
commit354984cc039585343751501b6467c3e331809508 (patch) (unidiff)
treebe8f7415ea25dc2a957d4c3a8aed36c6735265fe
parent5e092a18b061cde68430f1b2bf4457d1e5e8b0fb (diff)
downloadexp005-354984cc039585343751501b6467c3e331809508.zip
exp005-354984cc039585343751501b6467c3e331809508.tar.gz
exp005-354984cc039585343751501b6467c3e331809508.tar.bz2
Taking advantage of declaration and definition in the same line to
save space and make the code more readable.
-rw-r--r--src/model/geometry/density_legend_geometry.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/model/geometry/density_legend_geometry.c b/src/model/geometry/density_legend_geometry.c
index ac3280c..af40e5e 100644
--- a/src/model/geometry/density_legend_geometry.c
+++ b/src/model/geometry/density_legend_geometry.c
@@ -22,15 +22,10 @@ density_legend_geometry (void)
22 double c[2];22 double c[2];
23 double d[2];23 double d[2];
2424
25 const double *left;25 const double *left = &S.ortho.min_x;
26 const double *right;26 const double *right = &S.ortho.max_x;
27 const double *top;27 const double *top = &S.ortho.max_y;
28 const double *bottom;28 const double *bottom = &S.ortho.min_y;
29
30 left = &S.ortho.min_x;
31 right = &S.ortho.max_x;
32 bottom = &S.ortho.min_y;
33 top = &S.ortho.max_y;
3429
35 /*30 /*
36 * This value should be a percentage of the world height so that it31 * This value should be a percentage of the world height so that it

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.