mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 04:43:12 +00:00
(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right
This commit is contained in:
parent
e4a90f9688
commit
e2e95af945
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user