aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-11-19 10:04:54 +0000
committerTorbjörn Andersson2005-11-19 10:04:54 +0000
commitc0aca2f12e052812ef2e9afa30eadfd7855ce08d (patch)
treee08637769b9c1fecabbf4cea9134aa50671837a5
parent7c34ec25671b46ec09464f3a40c5c87e2e46543a (diff)
downloadscummvm-rg350-c0aca2f12e052812ef2e9afa30eadfd7855ce08d.tar.gz
scummvm-rg350-c0aca2f12e052812ef2e9afa30eadfd7855ce08d.tar.bz2
scummvm-rg350-c0aca2f12e052812ef2e9afa30eadfd7855ce08d.zip
I don't know if this is correct, but it does improve sprite positioning a
lot in Feeble Files. svn-id: r19663
-rw-r--r--simon/vga.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp
index 39127f04b7..b8065c0e4b 100644
--- a/simon/vga.cpp
+++ b/simon/vga.cpp
@@ -837,8 +837,10 @@ void SimonEngine::vc10_draw() {
offs = ((vlut[0]) * 2 + state.x) * 8;
offs2 = (vlut[1] + state.y);
} else {
- offs = ((vlut[0] - _video_windows[16]) * 2 + state.x) * 8;
+ offs = ((vlut[0] - _video_windows[16]) * 2 + state.x);
offs2 = (vlut[1] - _video_windows[17] + state.y);
+ if (getGameType() != GType_FF)
+ offs *= 8;
}
state.surf2_addr += offs + offs2 * state.surf2_pitch;