o8_getStringWidth also pops on param

svn-id: r6201
This commit is contained in:
Max Horn 2002-12-27 15:34:26 +00:00
parent fc04f73471
commit a236ff9689

View file

@ -1517,6 +1517,7 @@ void Scumm_v8::o8_getObjectImageHeight()
void Scumm_v8::o8_getStringWidth()
{
int a = pop(); // What is this? The first param for getStringWidth()? Or a charset id?
int len = resStrLen((char*)_scriptPointer);
int width = _charset->getStringWidth(0, _scriptPointer);
push(width);