Skip to content

Commit

Permalink
GRAPHICS: Use correct bounding rect in Font::drawString taking Common…
Browse files Browse the repository at this point in the history
…::String.
  • Loading branch information
Johannes Schickel committed Mar 20, 2016
1 parent 71c649f commit 2e5ef74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void Font::drawString(Surface *dst, const Common::U32String &str, int x, int y,
void Font::drawString(ManagedSurface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align, int deltax, bool useEllipsis) const {
drawString(&dst->_innerSurface, str, x, y, w, color, align, deltax, useEllipsis);
if (w != 0) {
dst->addDirtyRect(getBoundingBox(str, x, y, w, align));
dst->addDirtyRect(getBoundingBox(str, x, y, w, align, deltax, useEllipsis));
}
}

Expand Down

0 comments on commit 2e5ef74

Please sign in to comment.