(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 e4a90f9688
commit e2e95af945
1 changed files with 1 additions and 1 deletions

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
);
}