[Scummvm-cvs-logs] CVS: scummvm gui.cpp,1.56,1.57
Max Horn
fingolfin at users.sourceforge.net
Fri Jul 12 03:32:05 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv15228
Modified Files:
gui.cpp
Log Message:
fixed space bar bug in Save dialog. Dudes, why not use standard functions/macros instead of reinventing the broken wheel? 8-)
Index: gui.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui.cpp,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- gui.cpp 7 Jul 2002 20:32:26 -0000 1.56
+++ gui.cpp 12 Jul 2002 10:31:45 -0000 1.57
@@ -27,6 +27,8 @@
#include "guimaps.h"
#include "config-file.h"
+#include <ctype.h>
+
#define hline(x, y, x2, color) line(x, y, x2, y, color);
#define vline(x, y, y2, color) line(x, y, x, y2, color);
@@ -1120,7 +1122,7 @@
// Only check for widgets that are on the current GUI page (otherwise save dialog problems occur)
if (w->_page == page) {
// Check the actual key pressed, and the uppercase version. For people who have caps lock on
- if (keycode == w->_hotkey || (keycode - 32) == w->_hotkey)
+ if (keycode == w->_hotkey || toupper(keycode) == w->_hotkey)
handleCommand(w->_id);
}
w++;
More information about the Scummvm-git-logs
mailing list