diff options
author | Torbjörn Andersson | 2005-11-19 10:04:54 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-11-19 10:04:54 +0000 |
commit | c0aca2f12e052812ef2e9afa30eadfd7855ce08d (patch) | |
tree | e08637769b9c1fecabbf4cea9134aa50671837a5 /simon | |
parent | 7c34ec25671b46ec09464f3a40c5c87e2e46543a (diff) | |
download | scummvm-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
Diffstat (limited to 'simon')
-rw-r--r-- | simon/vga.cpp | 4 |
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; |