aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorFilippos Karapetis2009-04-23 20:37:41 +0000
committerFilippos Karapetis2009-04-23 20:37:41 +0000
commit78f892f87c03603d635d1ccef9c0febc214be5d9 (patch)
tree65f52e64b6688f1894eba0fb39ed8f9053bad25a /engines/sci/gfx
parent001699becbe2d8e6124051ac588095acca385d01 (diff)
downloadscummvm-rg350-78f892f87c03603d635d1ccef9c0febc214be5d9.tar.gz
scummvm-rg350-78f892f87c03603d635d1ccef9c0febc214be5d9.tar.bz2
scummvm-rg350-78f892f87c03603d635d1ccef9c0febc214be5d9.zip
The mouse cursor is now working in Eco Quest 1, though the hotspot is still wrong. Many thanks to waltervn for his findings on this.
svn-id: r40095
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/operations.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index 186d2acb3d..149230f0b0 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -1225,6 +1225,11 @@ int gfxop_set_pointer_view(gfx_state_t *state, int nr, int loop, int cel, Common
new_pointer->yoffset = hotspot->y;
}
+ // Special case for Eco Quest 1: The game is trying to hide the mouse cursor by clipping it, which is rejected
+ // by our graphics scaler. Hide the cursor when that happens instead.
+ if (new_pointer->width < 2 || new_pointer->height < 2)
+ return _gfxop_set_pointer(state, NULL);
+
if (!new_pointer) {
GFXWARN("Attempt to set invalid pointer #%d\n", nr);
return GFX_ERROR;