mirror of https://github.com/OpenTTD/OpenTTD
Fix #13955: Aligned y axis labels to the right
parent
35e2e9c83c
commit
fb60f6abd8
|
@ -431,7 +431,7 @@ protected:
|
||||||
if (rtl) {
|
if (rtl) {
|
||||||
DrawString(r.right + ScaleGUITrad(4), r.right + label_width + ScaleGUITrad(4), y,
|
DrawString(r.right + ScaleGUITrad(4), r.right + label_width + ScaleGUITrad(4), y,
|
||||||
GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label),
|
GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label),
|
||||||
GRAPH_AXIS_LABEL_COLOUR, SA_LEFT);
|
GRAPH_AXIS_LABEL_COLOUR, SA_RIGHT);
|
||||||
} else {
|
} else {
|
||||||
DrawString(r.left - label_width - ScaleGUITrad(4), r.left - ScaleGUITrad(4), y,
|
DrawString(r.left - label_width - ScaleGUITrad(4), r.left - ScaleGUITrad(4), y,
|
||||||
GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label),
|
GetString(STR_GRAPH_Y_LABEL, this->format_str_y_axis, y_label),
|
||||||
|
|
Loading…
Reference in New Issue