From e5b73b28998330af5ed0062b2ae4d49655246e93 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 9 Nov 2018 19:26:34 -0800 Subject: GRAPHICS: Add deltax optional parameter to Font drawString U32String version --- graphics/font.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'graphics/font.cpp') diff --git a/graphics/font.cpp b/graphics/font.cpp index 5f1e68c4f2..32d2852b89 100644 --- a/graphics/font.cpp +++ b/graphics/font.cpp @@ -300,8 +300,8 @@ void Font::drawString(Surface *dst, const Common::String &str, int x, int y, int drawStringImpl(*this, dst, renderStr, x, y, w, color, align, deltax); } -void Font::drawString(Surface *dst, const Common::U32String &str, int x, int y, int w, uint32 color, TextAlign align) const { - drawStringImpl(*this, dst, str, x, y, w, color, align, 0); +void Font::drawString(Surface *dst, const Common::U32String &str, int x, int y, int w, uint32 color, TextAlign align, int deltax) const { + drawStringImpl(*this, dst, str, x, y, w, color, align, deltax); } void Font::drawString(ManagedSurface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align, int deltax, bool useEllipsis) const { @@ -311,8 +311,8 @@ void Font::drawString(ManagedSurface *dst, const Common::String &str, int x, int } } -void Font::drawString(ManagedSurface *dst, const Common::U32String &str, int x, int y, int w, uint32 color, TextAlign align) const { - drawString(&dst->_innerSurface, str, x, y, w, color, align); +void Font::drawString(ManagedSurface *dst, const Common::U32String &str, int x, int y, int w, uint32 color, TextAlign align, int deltax) const { + drawString(&dst->_innerSurface, str, x, y, w, color, align, deltax); if (w != 0) { dst->addDirtyRect(getBoundingBox(str, x, y, w, align)); } -- cgit v1.2.3