aboutsummaryrefslogtreecommitdiff
path: root/common/error.h
diff options
context:
space:
mode:
authorJohannes Schickel2010-05-08 18:30:00 +0000
committerJohannes Schickel2010-05-08 18:30:00 +0000
commitada03c57b349ab9d30f7ee1612ff52c77eda84cf (patch)
treeb0020b6694a81a15861c160dad6a5e5a1a9f52d9 /common/error.h
parent78a99ce6a698c855ace0d5d25ba630fdafa50048 (diff)
downloadscummvm-rg350-ada03c57b349ab9d30f7ee1612ff52c77eda84cf.tar.gz
scummvm-rg350-ada03c57b349ab9d30f7ee1612ff52c77eda84cf.tar.bz2
scummvm-rg350-ada03c57b349ab9d30f7ee1612ff52c77eda84cf.zip
Prevent editable widgets from adding various characters when F1-F12 is pressed by the user.
Formerly the code just casted the "ascii" value of the key event to "byte" and thus truncating the character value. Now that would be fine, if we would not allow values >= 256 in the ascii field, for example 322 for F8 which in turn resulted in a "B" added to the editable field. I just added a check for the values being in the byte range before doing the cast, which fixes this. svn-id: r48967
Diffstat (limited to 'common/error.h')
0 files changed, 0 insertions, 0 deletions