|
@@ -405,13 +405,13 @@ protected:
|
|
|
x = r.left;
|
|
|
y = r.bottom + 2;
|
|
|
uint16 label = this->x_values_start;
|
|
|
|
|
|
for (int i = 0; i < this->num_on_x_axis; i++) {
|
|
|
SetDParam(0, label);
|
|
|
DrawString(x + 1, x + x_sep - 1, y, STR_GRAPH_Y_LABEL_NUMBER, graph_axis_label_colour, SA_CENTER);
|
|
|
DrawString(x + 1, x + x_sep - 1, y, STR_GRAPH_Y_LABEL_NUMBER, graph_axis_label_colour, SA_HOR_CENTER);
|
|
|
|
|
|
label += this->x_values_increment;
|
|
|
x += x_sep;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1436,13 +1436,13 @@ struct PerformanceRatingDetailWindow : W
|
|
|
/* Draw the bar */
|
|
|
if (x != this->bar_left) GfxFillRect(this->bar_left, bar_top, x, bar_top + this->bar_height, rtl ? colour_notdone : colour_done);
|
|
|
if (x != this->bar_right) GfxFillRect(x, bar_top, this->bar_right, bar_top + this->bar_height, rtl ? colour_done : colour_notdone);
|
|
|
|
|
|
/* Draw it */
|
|
|
SetDParam(0, Clamp(val, 0, needed) * 100 / needed);
|
|
|
DrawString(this->bar_left, this->bar_right, text_top, STR_PERFORMANCE_DETAIL_PERCENT, TC_FROMSTRING, SA_CENTER);
|
|
|
DrawString(this->bar_left, this->bar_right, text_top, STR_PERFORMANCE_DETAIL_PERCENT, TC_FROMSTRING, SA_HOR_CENTER);
|
|
|
|
|
|
/* SCORE_LOAN is inversed */
|
|
|
if (score_type == SCORE_LOAN) val = needed - val;
|
|
|
|
|
|
/* Draw the amount we have against what is needed
|
|
|
* For some of them it is in currency format */
|