aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2012-12-13 20:52:09 +0100
committerJohannes Schickel2012-12-13 21:08:47 +0100
commitb0ba4b01a4fee3409768bdced4de6719b51297bc (patch)
tree6ad91afdcee1804f54f911b4abafbac4d51ad3b6 /gui
parent7319ccd84f6facbaa3875d1adc31f26cea94d223 (diff)
downloadscummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.tar.gz
scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.tar.bz2
scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.zip
COMMON: Add wrapper for isprint.
This is done in the spirit of 658080deeda79d20ea40643569fbcb072573e7cf.
Diffstat (limited to 'gui')
-rw-r--r--gui/widgets/list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp
index 13784ddf7f..95d39c4f24 100644
--- a/gui/widgets/list.cpp
+++ b/gui/widgets/list.cpp
@@ -284,7 +284,7 @@ bool ListWidget::handleKeyDown(Common::KeyState state) {
bool dirty = false;
int oldSelectedItem = _selectedItem;
- if (!_editMode && state.keycode <= Common::KEYCODE_z && isprint((unsigned char)state.ascii)) {
+ if (!_editMode && state.keycode <= Common::KEYCODE_z && Common::isPrint(state.ascii)) {
// Quick selection mode: Go to first list item starting with this key
// (or a substring accumulated from the last couple key presses).
// Only works in a useful fashion if the list entries are sorted.