[Scummvm-cvs-logs] SF.net SVN: scummvm:[47030] scummvm/trunk/engines/agi/graphics.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue Jan 5 19:52:39 CET 2010
Revision: 47030
http://scummvm.svn.sourceforge.net/scummvm/?rev=47030&view=rev
Author: eriktorbjorn
Date: 2010-01-05 18:52:39 +0000 (Tue, 05 Jan 2010)
Log Message:
-----------
Fixed bug #2924968, "AGI: Can't click "cancel" in Save/Restore Game Menu". This
regression was probably introduced with r45260, "AGI: cleanup
GfxMgr::testButton".
Modified Paths:
--------------
scummvm/trunk/engines/agi/graphics.cpp
Modified: scummvm/trunk/engines/agi/graphics.cpp
===================================================================
--- scummvm/trunk/engines/agi/graphics.cpp 2010-01-05 18:32:26 UTC (rev 47029)
+++ scummvm/trunk/engines/agi/graphics.cpp 2010-01-05 18:52:39 UTC (rev 47030)
@@ -770,7 +770,7 @@
int GfxMgr::testButton(int x, int y, const char *s) {
int len = strlen(s);
Common::Rect rect(x - 3, y - 3, x + CHAR_COLS * len + 3, y + CHAR_LINES + 3);
- return rect.contains(x, y);
+ return rect.contains(_vm->_mouse.x, _vm->_mouse.y);
}
void GfxMgr::putBlock(int x1, int y1, int x2, int y2) {
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