From 193760a40f5361ad8b319fe256a0b03d2b949a60 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 20 Dec 2007 17:04:15 +0000 Subject: Fix for isalpha() assertions svn-id: r29924 --- engines/agi/agi.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/agi/agi.cpp') diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 6327fa6a1f..4a56fa9f26 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -219,6 +219,11 @@ void AgiEngine::processEvents() { key = KEY_BACKSPACE; break; default: + // FIXME: This fixes assertions with isalpha below, but it essentially filters + // out all function keys (control, alt and shift) + if (key > 255) + break; + // FIXME: We let lots of keys slip through here unchanged, passing our internal // keycode values directly to the AGI core. Do we really want that??? if (isalpha(key)) { -- cgit v1.2.3