diff options
author | rubidium <rubidium@openttd.org> | 2009-04-01 02:51:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-01 02:51:37 +0000 |
commit | e2e95af94556707f437a38d424fc2d1dba76ac29 (patch) | |
tree | 3ec57e26419da6168f4e6eadd64e3d8c3c04e08f | |
parent | e4a90f9688de9942ee98fb37254168ca06deff14 (diff) | |
download | openttd-e2e95af94556707f437a38d424fc2d1dba76ac29.tar.xz |
(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 2ee1726e3..aa4764929 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 ); } |