diff options
author | Max Horn | 2003-04-26 13:28:34 +0000 |
---|---|---|
committer | Max Horn | 2003-04-26 13:28:34 +0000 |
commit | 2d8fa42f4492ff4ea8defaa12569c8b4587e4454 (patch) | |
tree | b79d1beb3211d9be800fd1c65ca0c1dd66905eee /scumm/gfx.cpp | |
parent | 5626e42f5bf50ae7fdde587047d48cf6986d61e8 (diff) | |
download | scummvm-rg350-2d8fa42f4492ff4ea8defaa12569c8b4587e4454.tar.gz scummvm-rg350-2d8fa42f4492ff4ea8defaa12569c8b4587e4454.tar.bz2 scummvm-rg350-2d8fa42f4492ff4ea8defaa12569c8b4587e4454.zip |
renamed setCursorHotspot2 to setCursorHotspot; fixed (with a hack) cursor in Loom
svn-id: r7132
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 703f96eb83..f32a482afd 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -3218,7 +3218,7 @@ void Scumm::setCursor(int cursor) { warning("setCursor(%d)", cursor); } -void Scumm::setCursorHotspot2(int x, int y) { +void Scumm::setCursorHotspot(int x, int y) { _cursor.hotspotX = x; _cursor.hotspotY = y; // FIXME this hacks around offset cursor in the humongous games @@ -3230,7 +3230,7 @@ void Scumm::setCursorHotspot2(int x, int y) { void Scumm::updateCursor() { _system->set_mouse_cursor(_grabbedCursor, _cursor.width, _cursor.height, - _cursor.hotspotX, _cursor.hotspotY); + _cursor.hotspotX, _cursor.hotspotY); } void Scumm::animateCursor() { @@ -3272,14 +3272,18 @@ void Scumm::decompressDefaultCursor(int idx) { // FIXME: None of the stock cursors are right for Loom. Why is that? if ((_gameId == GID_LOOM256) || (_gameId == GID_LOOM)) { - int w; + int w = 0; _cursor.width = 8; _cursor.height = 8; _cursor.hotspotX = 0; _cursor.hotspotY = 0; + + // FIXME - this corrects the cursor hotspot in Loom (EGA) + if (_gameId == GID_LOOM) + _cursor.hotspotY = 15; - for (i = 0, w = 0; i < 8; i++) { + for (i = 0; i < 8; i++) { w += (i >= 6) ? -2 : 1; for (j = 0; j < w; j++) _grabbedCursor[i * 8 + j] = color; |