[Scummvm-cvs-logs] SF.net SVN: scummvm:[35078] scummvm/trunk/engines/groovie
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Sat Nov 15 12:23:02 CET 2008
Revision: 35078
http://scummvm.svn.sourceforge.net/scummvm/?rev=35078&view=rev
Author: jvprat
Date: 2008-11-15 11:23:02 +0000 (Sat, 15 Nov 2008)
Log Message:
-----------
Fix for bug "Save game's names don't show up" (issue 31 on google code)
Modified Paths:
--------------
scummvm/trunk/engines/groovie/script.cpp
scummvm/trunk/engines/groovie/script.h
Modified: scummvm/trunk/engines/groovie/script.cpp
===================================================================
--- scummvm/trunk/engines/groovie/script.cpp 2008-11-15 10:50:57 UTC (rev 35077)
+++ scummvm/trunk/engines/groovie/script.cpp 2008-11-15 11:23:02 UTC (rev 35078)
@@ -88,8 +88,7 @@
_hotspotBottomAction = 0;
_hotspotRightAction = 0;
_hotspotLeftAction = 0;
- _hotspotCursorOldX = 1000;
- _hotspotCursorOldY = 1000;
+ _hotspotSlot = (uint16)-1;
}
Script::~Script() {
@@ -1202,9 +1201,12 @@
_font = new Font(_vm->_system);
}
_font->printstring(savename);
+
+ // Save the currently highlighted slot
+ _hotspotSlot = slot;
} else {
Common::Point mousepos = _vm->_system->getEventManager()->getMousePos();
- if (_hotspotCursorOldX != mousepos.x || _hotspotCursorOldY != mousepos.y ) {
+ if (_hotspotSlot == slot) {
Common::Rect topbar(640, 80);
Graphics::Surface *gamescreen;
@@ -1213,8 +1215,9 @@
gamescreen->fillRect(topbar, 0);
_vm->_system->unlockScreen();
- _hotspotCursorOldX = mousepos.x;
- _hotspotCursorOldY = mousepos.y;
+
+ // Removing the slot highlight
+ _hotspotSlot = (uint16)-1;
}
}
}
Modified: scummvm/trunk/engines/groovie/script.h
===================================================================
--- scummvm/trunk/engines/groovie/script.h 2008-11-15 10:50:57 UTC (rev 35077)
+++ scummvm/trunk/engines/groovie/script.h 2008-11-15 11:23:02 UTC (rev 35078)
@@ -93,8 +93,7 @@
uint16 _hotspotBottomCursor;
uint16 _hotspotRightAction;
uint16 _hotspotLeftAction;
- uint16 _hotspotCursorOldX;
- uint16 _hotspotCursorOldY;
+ uint16 _hotspotSlot;
// Video
Font *_font;
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