Changeset 33 for trunk/orca/gl/gx.c
- Timestamp:
- 02/08/06 19:36:45 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/gl/gx.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/gl/gx.c
r25 r33 803 803 int code; 804 804 int ch; 805 int strLen; 805 806 const char* cp; 806 OString* str;807 807 OValue* it = blk->values; 808 808 OValue* end = blk->values + blk->used; … … 814 814 if( it->type == OT_WORD ) 815 815 { 816 str = orAtomString( it->word.atom ); 817 cp = str->charArray; 818 ch = (str->used == 1) ? *cp : 0; 816 cp = orAtomCString( it->word.atom ); 817 strLen = 0; 818 while( cp[ strLen ] ) 819 ++strLen; 820 ch = (strLen == 1) ? *cp : 0; 819 821 } 820 822 else if( it->type == OT_CHAR ) … … 881 883 } 882 884 } 883 else if( str ->used== 2 )885 else if( strLen == 2 ) 884 886 { 885 887 if( strnequ( cp, "up", 2 ) ) code = KEY_Up; … … 894 896 else if( strnequ( cp, "f9", 2 ) ) code = KEY_F9; 895 897 } 896 else if( str ->used== 3 )898 else if( strLen == 3 ) 897 899 { 898 900 if( strnequ( cp, "spc", 3 ) ) code = KEY_Space;
