[Scummvm-cvs-logs] SF.net SVN: scummvm: [21929] scummvm/trunk/engines/simon/cursor.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sat Apr 15 22:38:01 CEST 2006
Revision: 21929
Author: kirben
Date: 2006-04-15 22:37:16 -0700 (Sat, 15 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21929&view=rev
Log Message:
-----------
Use default cursor in FF for now, to make selection easier
Modified Paths:
--------------
scummvm/trunk/engines/simon/cursor.cpp
Modified: scummvm/trunk/engines/simon/cursor.cpp
===================================================================
--- scummvm/trunk/engines/simon/cursor.cpp 2006-04-16 01:06:18 UTC (rev 21928)
+++ scummvm/trunk/engines/simon/cursor.cpp 2006-04-16 05:37:16 UTC (rev 21929)
@@ -226,10 +226,23 @@
void SimonEngine::drawMousePointer() {
//debug(0, "Mouse %d Anim %d Max %d", _mouseCursor, _mouseAnim, _mouseAnimMax);
- if (getGameType() == GType_SIMON2)
+ if (getGameType() == GType_FF) {
+ byte *src, *dst;
+ VgaPointersEntry *vpe = &_vgaBufferPointers[7];
+
+ src = vpe->vgaFile2 + 98 * 8;
+ uint width = READ_LE_UINT16(src + 6);
+ uint height = READ_LE_UINT16(src + 4) & 0x7FFF;
+ src = vpe->vgaFile2 + readUint32Wrapper(src);
+
+ dst = (byte *)malloc(width * height);
+ memcpy(dst, src, width * height);
+ _system->setMouseCursor(dst, width, height, width / 2, height / 2, 0);
+ } else if (getGameType() == GType_SIMON2) {
_system->setMouseCursor(_simon2_cursors[_mouseCursor], 16, 16, 7, 7);
- else
+ } else {
_system->setMouseCursor(_simon1_cursor, 16, 16, 0, 0);
+ }
}
} // End of namespace Simon
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list