EMI/GRIM: Fix text position. With the correct height, we don't need to adjust the line height any more.

This commit is contained in:
Joseph Jezak 2014-07-15 16:36:41 -04:00
parent 4e5cfab3a3
commit f25f678c13

View File

@ -341,20 +341,6 @@ int TextObject::getLineX(int line) const {
int TextObject::getLineY(int line) const {
int y = _posY;
if (_blastDraw)
y = _posY + 5;
else {
if (_font->getHeight() == 21) // talk_font,verb_font
y = _posY - 6;
else if (_font->getHeight() == 26) // special_font
y = _posY - 12;
else if (_font->getHeight() == 13) // computer_font
y = _posY - 6;
else if (_font->getHeight() == 19) // pt_font
y = _posY - 9;
else
y = _posY;
}
if (y < 0)
y = 0;
y += _font->getHeight() * line;