mirror of https://github.com/OpenTTD/OpenTTD
(svn r25726) -Fix: Right side of object class string was misaligned. (sbr)
parent
f154d5915a
commit
4fc6cdfbea
|
@ -210,7 +210,7 @@ public:
|
||||||
if (objclass->GetUISpecCount() == 0) continue;
|
if (objclass->GetUISpecCount() == 0) continue;
|
||||||
if (!this->vscroll->IsVisible(pos++)) continue;
|
if (!this->vscroll->IsVisible(pos++)) continue;
|
||||||
SetDParam(0, objclass->name);
|
SetDParam(0, objclass->name);
|
||||||
DrawString(r.left + WD_MATRIX_LEFT, r.right + WD_MATRIX_RIGHT, y + WD_MATRIX_TOP, STR_JUST_STRING,
|
DrawString(r.left + WD_MATRIX_LEFT, r.right - WD_MATRIX_RIGHT, y + WD_MATRIX_TOP, STR_JUST_STRING,
|
||||||
((int)i == _selected_object_class) ? TC_WHITE : TC_BLACK);
|
((int)i == _selected_object_class) ? TC_WHITE : TC_BLACK);
|
||||||
y += this->line_height;
|
y += this->line_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue