Make sure we take xOffset into account, we don't always start at 0 for the FMV text.

fixes ticket:625

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7781 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-06-18 05:17:56 +00:00 committed by Git SVN Gateway
parent ea2d10129f
commit 7044fb1ca2
1 changed files with 2 additions and 1 deletions

View File

@ -454,7 +454,8 @@ BOOL seq_AddTextForVideo(const char* pText, SDWORD xOffset, SDWORD yOffset, SDWO
SDWORD sourceLength, currentLength;
char* currentText;
static SDWORD lastX;
const unsigned int BUFFER_WIDTH = pie_GetVideoBufferWidth();
// make sure we take xOffset into account, we don't always start at 0
const unsigned int BUFFER_WIDTH = pie_GetVideoBufferWidth() - xOffset;
iV_SetFont(font_regular);