(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right

This commit is contained in:
rubidium 2009-04-01 02:51:37 +00:00
parent 13b6aaa425
commit e2dfa4022e

View File

@ -1467,7 +1467,7 @@ static void ViewportDrawStrings(DrawPixelInfo *dpi, const StringSpriteToDrawVect
}
DrawString(
UnScaleByZoom(ss->x, zoom), UnScaleByZoom(ss->x, zoom) + w, UnScaleByZoom(ss->y, zoom) - (ss->width & 0x8000 ? 2 : 0),
UnScaleByZoom(ss->x, zoom), UnScaleByZoom(ss->x, zoom) + w - 1, UnScaleByZoom(ss->y, zoom) - (ss->width & 0x8000 ? 2 : 0),
ss->string, colour, SA_CENTER
);
}