aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-11 21:08:08 +0000
committerNicola Mettifogo2007-08-11 21:08:08 +0000
commitccfd109e2539c3d1ec46d1f93ffda7001f86d326 (patch)
tree37864fc01e6f41df4f872f8b6d2869fc6c5eccf7 /engines/parallaction/parallaction_br.cpp
parentf1cbf3f9b636edf0360bb4287d987d85f7aa2cab (diff)
downloadscummvm-rg350-ccfd109e2539c3d1ec46d1f93ffda7001f86d326.tar.gz
scummvm-rg350-ccfd109e2539c3d1ec46d1f93ffda7001f86d326.tar.bz2
scummvm-rg350-ccfd109e2539c3d1ec46d1f93ffda7001f86d326.zip
Added partial cursor support for Big Red Adventure. Small adjustments to generalize disk code for multiple cursors.
svn-id: r28537
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r--engines/parallaction/parallaction_br.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp
index 3ac36a75fa..0db3fb8518 100644
--- a/engines/parallaction/parallaction_br.cpp
+++ b/engines/parallaction/parallaction_br.cpp
@@ -54,6 +54,7 @@ int Parallaction_br::init() {
initResources();
initFonts();
+ initCursors();
Parallaction::init();
@@ -62,6 +63,15 @@ int Parallaction_br::init() {
Parallaction_br::~Parallaction_br() {
freeFonts();
+
+ _dinoCursor->free();
+ _dougCursor->free();
+ _donnaCursor->free();
+
+ delete _dinoCursor;
+ delete _dougCursor;
+ delete _donnaCursor;
+
}
void Parallaction_br::callFunction(uint index, void* parm) {
@@ -152,7 +162,7 @@ int Parallaction_br::showMenu() {
int selectedItem = -1, oldSelectedItem = -2;
- _system->showMouse(true);
+ setMousePointer(0);
while (_mouseButtons != kMouseLeftUp) {
@@ -223,9 +233,20 @@ void Parallaction_br::freeFonts() {
return;
}
-void Parallaction_br::setMousePointer(int16 index) {
+void Parallaction_br::initCursors() {
+
+ _dinoCursor = _disk->loadPointer("pointer1");
+ _dougCursor = _disk->loadPointer("pointer2");
+ _donnaCursor = _disk->loadPointer("pointer3");
+ _mouseArrow = _donnaCursor;
+}
+
+void Parallaction_br::setMousePointer(int16 index) {
+
+ _system->setMouseCursor((byte*)_mouseArrow->pixels, _mouseArrow->w, _mouseArrow->h, 0, 0, 0);
+ _system->showMouse(true);
}