Skip to content

Commit

Permalink
SDL/Canvas: clip text in formatted_text()
Browse files Browse the repository at this point in the history
Fixes one half of XCSoar#1421.
  • Loading branch information
MaxKellermann committed Feb 19, 2012
1 parent 696d3d5 commit 7626e8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Screen/SDL/Canvas.cpp
Expand Up @@ -331,7 +331,8 @@ Canvas::formatted_text(PixelRect *rc, const TCHAR *text, unsigned format) {
} else { // default is DT_LEFT
x = rc->left;
}
Canvas::text(x, y, duplicated + i);

TextAutoClipped(x, y, duplicated + i);
}
y += skip;
if (y >= rc->bottom)
Expand Down

0 comments on commit 7626e8f

Please sign in to comment.