(svn r25726) -Fix: Right side of object class string was misaligned. (sbr)

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 11 years ago
parent f154d5915a
commit 4fc6cdfbea

@ -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;
}

Loading…
Cancel
Save