Mercurial > hg > openttd
changeset 11545:907f3cfd672e draft
(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 01 Apr 2009 02:51:37 +0000 |
parents | b82c75ea2fc4 |
children | 17c669ba1319 |
files | src/viewport.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1467,7 +1467,7 @@ } 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 ); }