diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp
index b3cfee8..17aec77 100644
a
|
b
|
SciVersion GameFeatures::detectSetCursorType() {
|
171 | 171 | if (getSciVersion() <= SCI_VERSION_1_MIDDLE) { |
172 | 172 | // SCI1 middle and older games never use cursor views |
173 | 173 | _setCursorType = SCI_VERSION_0_EARLY; |
| 174 | debugC(1, kDebugLevelGraphics, "getSciVersion():%d", getSciVersion()); |
174 | 175 | } else if (getSciVersion() >= SCI_VERSION_1_1) { |
175 | 176 | // SCI1.1 games always use cursor views |
176 | 177 | _setCursorType = SCI_VERSION_1_1; |
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index caae562..5297411 100644
a
|
b
|
void kDirLoopWorker(reg_t object, uint16 angle, EngineState *s, int argc, reg_t
|
116 | 116 | static reg_t kSetCursorSci0(EngineState *s, int argc, reg_t *argv) { |
117 | 117 | Common::Point pos; |
118 | 118 | GuiResourceId cursorId = argv[0].toSint16(); |
| 119 | debug(1, "kSetCursorSci0 cursorId:%d", cursorId); |
119 | 120 | |
120 | 121 | // Set pointer position, if requested |
121 | 122 | if (argc >= 4) { |
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index a939b04..6dd9d5c 100644
a
|
b
|
void GfxCursor::init(GfxCoordAdjuster *coordAdjuster, EventManager *event) {
|
76 | 76 | } |
77 | 77 | |
78 | 78 | void GfxCursor::kernelShow() { |
| 79 | debug(1, "GfxCursor::kernelShow()"); |
79 | 80 | CursorMan.showMouse(true); |
80 | 81 | _isVisible = true; |
81 | 82 | } |
82 | 83 | |
83 | 84 | void GfxCursor::kernelHide() { |
| 85 | debug(1, "GfxCursor::kernelHide()"); |
84 | 86 | CursorMan.showMouse(false); |
85 | 87 | _isVisible = false; |
86 | 88 | } |
… |
… |
void GfxCursor::purgeCache() {
|
99 | 101 | } |
100 | 102 | |
101 | 103 | void GfxCursor::kernelSetShape(GuiResourceId resourceId) { |
| 104 | debug(1, "GfxCursor::kernelSetShape(resourceId: %d)", resourceId); |
102 | 105 | Resource *resource; |
103 | 106 | byte *resourceData; |
104 | 107 | Common::Point hotspot = Common::Point(0, 0); |
… |
… |
void GfxCursor::kernelSetShape(GuiResourceId resourceId) {
|
153 | 156 | |
154 | 157 | for (x = 0; x < SCI_CURSOR_SCI0_HEIGHTWIDTH; x++) { |
155 | 158 | color = (((maskA << x) & 0x8000) | (((maskB << x) >> 1) & 0x4000)) >> 14; |
| 159 | if (color == 2) |
| 160 | debugN(1, " "); |
| 161 | else |
| 162 | debugN(1, "%d", color); |
156 | 163 | *pOut++ = colorMapping[color]; |
157 | 164 | } |
| 165 | debug(1, " "); |
158 | 166 | } |
159 | 167 | |
160 | 168 | heightWidth = SCI_CURSOR_SCI0_HEIGHTWIDTH; |
161 | 169 | |
162 | 170 | if (_upscaledHires) { |
| 171 | debug(1, "_upscaledHires Cursor"); |
163 | 172 | // Scale cursor by 2x - note: sierra didn't do this, but it looks much better |
164 | 173 | heightWidth *= 2; |
165 | 174 | hotspot.x *= 2; |