From e2dfa4022eadf0be090bae5d809444083fad738a Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 1 Apr 2009 02:51:37 +0000 Subject: [PATCH] (svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 2ee1726e31..aa47649298 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -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 ); }