1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-03 03:49:12 +00:00

(svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them.

This commit is contained in:
frosch
2013-06-01 14:33:48 +00:00
parent f292a87dc4
commit ce110eed32
9 changed files with 32 additions and 11 deletions

View File

@@ -504,7 +504,7 @@ public:
}
} else {
/* Draw the label under the data point rather than on the grid line. */
SetDParamMaxValue(0, this->x_values_start + this->num_on_x_axis * this->x_values_increment);
SetDParamMaxValue(0, this->x_values_start + this->num_on_x_axis * this->x_values_increment, 0, FS_SMALL);
x_label_width = GetStringBoundingBox(STR_GRAPH_Y_LABEL_NUMBER).width;
}