diff -ur --exclude=CVS --exclude=Makefile ScummVM/scumm/cursor.cpp ScummVM+hack/scumm/cursor.cpp
old
|
new
|
|
64 | 64 | 0x1004, 0x2002, 0x0000, 0x0080, 0x01c0, 0x02a0, 0x0080, 0x0000 }, |
65 | 65 | }; |
66 | 66 | |
67 | | static const byte default_cursor_hotspots[10] = { |
| 67 | static byte default_cursor_hotspots[10] = { |
68 | 68 | 8, 7, 8, 7, 1, 1, 5, 0, |
69 | 69 | 8, 7, //zak256 |
70 | 70 | }; |
… |
… |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 | |
| 85 | void ScummEngine::setCursorHotspot(int index, int x, int y) { |
| 86 | // FIXME: Is this needed for other games, as well? |
| 87 | if (_gameId == GID_LOOM || _gameId == GID_LOOM256) { |
| 88 | default_cursor_hotspots[2 * index] = x; |
| 89 | default_cursor_hotspots[2 * index + 1] = y; |
| 90 | } else |
| 91 | setCursorHotspot(x, y); |
| 92 | } |
| 93 | |
85 | 94 | void ScummEngine::setCursorHotspot(int x, int y) { |
86 | 95 | _cursor.hotspotX = x; |
87 | 96 | _cursor.hotspotY = y; |
diff -ur --exclude=CVS --exclude=Makefile ScummVM/scumm/script_v5.cpp ScummVM+hack/scumm/script_v5.cpp
old
|
new
|
|
683 | 683 | i = getVarOrDirectByte(PARAM_1); |
684 | 684 | j = getVarOrDirectByte(PARAM_2); |
685 | 685 | k = getVarOrDirectByte(PARAM_3); |
686 | | setCursorHotspot(j, k); |
| 686 | setCursorHotspot(i, j, k); |
687 | 687 | break; |
688 | 688 | case 12: // SO_CURSOR_SET |
689 | 689 | i = getVarOrDirectByte(PARAM_1); |
diff -ur --exclude=CVS --exclude=Makefile ScummVM/scumm/scumm.h ScummVM+hack/scumm/scumm.h
old
|
new
|
|
936 | 936 | void darkenPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor); |
937 | 937 | void desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor); |
938 | 938 | |
| 939 | void setCursorHotspot(int index, int x, int y); |
939 | 940 | void setCursorHotspot(int x, int y); |
940 | 941 | void setCursorTransparency(int a); |
941 | 942 | void setupCursor(); |