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-861f7616d084master
parent
ea2d10129f
commit
7044fb1ca2
|
@ -454,7 +454,8 @@ BOOL seq_AddTextForVideo(const char* pText, SDWORD xOffset, SDWORD yOffset, SDWO
|
||||||
SDWORD sourceLength, currentLength;
|
SDWORD sourceLength, currentLength;
|
||||||
char* currentText;
|
char* currentText;
|
||||||
static SDWORD lastX;
|
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);
|
iV_SetFont(font_regular);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue