diff options
author | Robert Špalek | 2009-09-29 06:36:39 +0000 |
---|---|---|
committer | Robert Špalek | 2009-09-29 06:36:39 +0000 |
commit | 4be9e6cda06fd7cacf9e9fdfe9db5e9bcc3dfb41 (patch) | |
tree | ce1c390a040617018d943e8c1987b05d70280f8d /engines/draci/game.cpp | |
parent | 00a733f7cf33942a0618d99a4f9d0c0aefad1fef (diff) | |
download | scummvm-rg350-4be9e6cda06fd7cacf9e9fdfe9db5e9bcc3dfb41.tar.gz scummvm-rg350-4be9e6cda06fd7cacf9e9fdfe9db5e9bcc3dfb41.tar.bz2 scummvm-rg350-4be9e6cda06fd7cacf9e9fdfe9db5e9bcc3dfb41.zip |
Rewrite from scratch drawReScaled() and cropping now works well.
I left draw() as is for now, although it could also be similarly simplified.
Also, one could easily completely get rid of columnIndices[], but I was too
tired for the time being.
svn-id: r44457
Diffstat (limited to 'engines/draci/game.cpp')
-rw-r--r-- | engines/draci/game.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index 1bfc6052fb..3b088773af 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -1379,9 +1379,6 @@ void Game::positionAnimAsHero(Animation *anim) { Common::Point p = _hero; p.x -= (int)(scale * width) / 2; p.y -= (int)(scale * height); - // TODO: fix drawScaled() and remove this - if (p.x < 0) - p.x = 0; // Since _persons[] is used for placing talking text, we use the non-adjusted x value // so the text remains centered over the dragon. |