[Scummvm-cvs-logs] CVS: scummvm/gui ListWidget.cpp,1.21,1.22
Max Horn
fingolfin at users.sourceforge.net
Sat Mar 8 16:40:08 CET 2003
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv13952
Modified Files:
ListWidget.cpp
Log Message:
only treat double clicks as double clicks, but not triple/quadruple/etc. clicks)
Index: ListWidget.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/ListWidget.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- ListWidget.cpp 6 Mar 2003 21:45:33 -0000 1.21
+++ ListWidget.cpp 9 Mar 2003 00:39:16 -0000 1.22
@@ -118,7 +118,7 @@
void ListWidget::handleMouseUp(int x, int y, int button, int clickCount) {
// If this was a double click and the mouse is still over the selected item,
// send the double click command
- if (clickCount > 1 && (_selectedItem == (y - 1) / kLineHeight + _currentPos)) {
+ if (clickCount == 2 && (_selectedItem == (y - 1) / kLineHeight + _currentPos)) {
sendCommand(kListItemDoubleClickedCmd, _selectedItem);
}
}
More information about the Scummvm-git-logs
mailing list