diff options
author | Paweł Kołodziejski | 2002-10-21 08:13:48 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-10-21 08:13:48 +0000 |
commit | 8a0d3438fc9edc5c8ce912a0da0db1944efe79d1 (patch) | |
tree | 17b796a61ede6efdaa4d28472f8de713d5ad05a7 /scumm/akos.cpp | |
parent | 67c00eb7e69b05bdeb731629d35b9ada3fd6c92b (diff) | |
download | scummvm-rg350-8a0d3438fc9edc5c8ce912a0da0db1944efe79d1.tar.gz scummvm-rg350-8a0d3438fc9edc5c8ce912a0da0db1944efe79d1.tar.bz2 scummvm-rg350-8a0d3438fc9edc5c8ce912a0da0db1944efe79d1.zip |
added cliping for actor in akos16
svn-id: r5206
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index acbb5be8a1..3cd71dc4e8 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -1405,13 +1405,13 @@ void AkosRenderer::codec16() { _vm->updateDirtyRect(0, clip_left, clip_right + 1, clip_top, clip_bottom + 1, 1 << dirty_id); -// if(clip_top < Actor.top) { -// Actor.top = clip_top; -// } + if(clip_top < draw_top) { + draw_top = clip_top; + } -// if(clip_bottom > Actor.bottom) { -// Actor.bottom = clip_bottom + 1; -// } + if(clip_bottom > draw_bottom) { + draw_bottom = clip_bottom + 1; + } int32 width_unk, height_unk; |