summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22cf5eb)
raw | patch | inline | side by side (parent: 22cf5eb)
author | Johan Engelen <goejendaagh@zonnet.nl> | |
Wed, 14 Apr 2010 20:32:14 +0000 (22:32 +0200) | ||
committer | Johan Engelen <goejendaagh@zonnet.nl> | |
Wed, 14 Apr 2010 20:32:14 +0000 (22:32 +0200) |
src/display/canvas-axonomgrid.cpp | patch | blob | history |
index ee05cd01cd011c6591301a6eb445e693a7a39e3c..cf28831166a04d829ee84f77625fe9bd17e49785 100644 (file)
{
ow = origin * affine;
sw = Geom::Point(fabs(affine[0]),fabs(affine[3]));
+ sw *= lengthy;
+
+ scaled = false;
for(int dim = 0; dim < 2; dim++) {
gint scaling_factor = empspacing;
if (scaling_factor <= 1)
scaling_factor = 5;
- scaled = FALSE;
int watchdog = 0;
while ( (sw[dim] < 8.0) & (watchdog < 100) ) {
- scaled = TRUE;
+ scaled = true;
sw[dim] *= scaling_factor;
// First pass, go up to the major line spacing, then
// keep increasing by two.
}
- spacing_ylines = sw[Geom::X] * lengthy /(tan_angle[X] + tan_angle[Z]);
- lyw = sw[Geom::Y] * lengthy;
- lxw_x = (lengthy / tan_angle[X]) * sw[Geom::X];
- lxw_z = (lengthy / tan_angle[Z]) * sw[Geom::X];
+ spacing_ylines = sw[Geom::X] /(tan_angle[X] + tan_angle[Z]);
+ lyw = sw[Geom::Y];
+ lxw_x = sw[Geom::X] / tan_angle[X];
+ lxw_z = sw[Geom::X] / tan_angle[Z];
if (empspacing == 0) {
- scaled = TRUE;
+ scaled = true;
}
}