From c0aca2f12e052812ef2e9afa30eadfd7855ce08d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 19 Nov 2005 10:04:54 +0000 Subject: I don't know if this is correct, but it does improve sprite positioning a lot in Feeble Files. svn-id: r19663 --- simon/vga.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'simon') 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; -- cgit v1.2.3