diff options
author | sylvaintv | 2011-03-13 23:11:47 +0100 |
---|---|---|
committer | sylvaintv | 2011-03-13 23:11:47 +0100 |
commit | 3964ce81233c3e76b90cd8363781ac2a0558ed12 (patch) | |
tree | 4e5ed9fc6b8fb7d650d3ff3f948c0005a3ba9348 /engines/toon/font.cpp | |
parent | 9e1245c420c8cd4547eb0828c434856c97260c0b (diff) | |
download | scummvm-rg350-3964ce81233c3e76b90cd8363781ac2a0558ed12.tar.gz scummvm-rg350-3964ce81233c3e76b90cd8363781ac2a0558ed12.tar.bz2 scummvm-rg350-3964ce81233c3e76b90cd8363781ac2a0558ed12.zip |
TOON: Add more dirtyRect checks
Diffstat (limited to 'engines/toon/font.cpp')
-rw-r--r-- | engines/toon/font.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/font.cpp b/engines/toon/font.cpp index 4a60f02f29..8192a6f6f1 100644 --- a/engines/toon/font.cpp +++ b/engines/toon/font.cpp @@ -265,8 +265,8 @@ void FontRenderer::renderMultiLineText(int32 x, int32 y, Common::String origText if (x - 30 - maxWidth / 2 < 0) x = maxWidth / 2 + 30; - if (x + 30 + (maxWidth / 2) > 640) - x = 640 - (maxWidth / 2) - 30; + if (x + 30 + (maxWidth / 2) > TOON_SCREEN_WIDTH) + x = TOON_SCREEN_WIDTH - (maxWidth / 2) - 30; // we have good coordinates now, we can render the multi line int32 curX = x; |