mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
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:
parent
4e5cfab3a3
commit
f25f678c13
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user