aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/graphics.cpp
diff options
context:
space:
mode:
authorStrangerke2013-10-01 23:31:31 +0200
committerStrangerke2013-10-01 23:31:31 +0200
commit5a4bd0d837a780be737a9c7d978d23a4c2954606 (patch)
tree052699038b59c9ab84894d69b629ebcc3ee8e427 /engines/avalanche/graphics.cpp
parentc9432b8467ee5ef489a2d99f91edefb26dd31d60 (diff)
downloadscummvm-rg350-5a4bd0d837a780be737a9c7d978d23a4c2954606.tar.gz
scummvm-rg350-5a4bd0d837a780be737a9c7d978d23a4c2954606.tar.bz2
scummvm-rg350-5a4bd0d837a780be737a9c7d978d23a4c2954606.zip
AVALANCHE: some more work on variables
Diffstat (limited to 'engines/avalanche/graphics.cpp')
-rw-r--r--engines/avalanche/graphics.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index a7d9c3964e..4c398dfd20 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -38,6 +38,18 @@ namespace Avalanche {
const byte GraphicManager::kEgaPaletteIndex[16] = {0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63};
+const MouseHotspotType GraphicManager::kMouseHotSpots[9] = {
+ {8,0}, // 0 - up-arrow
+ {0,0}, // 1 - screwdriver
+ {15,6}, // 2 - right-arrow
+ {0,0}, // 3 - fletch
+ {8,7}, // 4 - hourglass
+ {4,0}, // 5 - TTHand
+ {8,5}, // 6 - Mark's crosshairs
+ {8,7}, // 7 - I-beam
+ {0,0} // 8 - question mark
+};
+
GraphicManager::GraphicManager(AvalancheEngine *vm) {
_vm = vm;
}
@@ -144,7 +156,7 @@ void GraphicManager::loadMouse(byte which) {
mask.free();
f.close();
- CursorMan.replaceCursor(cursor.getPixels(), 16, 32, AvalancheEngine::kMouseHotSpots[which]._horizontal, AvalancheEngine::kMouseHotSpots[which]._vertical * 2, 255, false);
+ CursorMan.replaceCursor(cursor.getPixels(), 16, 32, kMouseHotSpots[which]._horizontal, kMouseHotSpots[which]._vertical * 2, 255, false);
cursor.free();
}