diff options
author | frosch <frosch@openttd.org> | 2013-08-18 14:15:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-08-18 14:15:27 +0000 |
commit | 4fc6cdfbea34bd26318e67c1e9cd5c25ff0b952d (patch) | |
tree | c5988ad959c8c81fd6f733061bde85e5b13e5650 /src | |
parent | f154d5915ac0745a209c6a51d0f7d3fc9f475317 (diff) | |
download | openttd-4fc6cdfbea34bd26318e67c1e9cd5c25ff0b952d.tar.xz |
(svn r25726) -Fix: Right side of object class string was misaligned. (sbr)
Diffstat (limited to 'src')
-rw-r--r-- | src/object_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index f0b3eabe6..e53ad6de1 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -210,7 +210,7 @@ public: if (objclass->GetUISpecCount() == 0) continue; if (!this->vscroll->IsVisible(pos++)) continue; 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); y += this->line_height; } |