diff options
author | Simon Howard | 2014-10-19 16:52:36 -0400 |
---|---|---|
committer | Simon Howard | 2014-10-19 16:52:36 -0400 |
commit | 16c56ea0c4476f4d908a4f8073cab48cdfe43005 (patch) | |
tree | a90780cde55293238182625dcffdc4addfae1721 /textscreen/txt_gui.h | |
parent | a8a5d2899a73f9830f69fe2c329d2a81e299def8 (diff) | |
download | chocolate-doom-16c56ea0c4476f4d908a4f8073cab48cdfe43005.tar.gz chocolate-doom-16c56ea0c4476f4d908a4f8073cab48cdfe43005.tar.bz2 chocolate-doom-16c56ea0c4476f4d908a4f8073cab48cdfe43005.zip |
textscreen: Don't allow input of unprintable characters.
If a Unicode character is not part of the Extended ASCII set that
we can display on screen, don't allow it to be typed (which would
display a backwards question mark). Thanks Alexandre-Xavier for this
suggestion on #229.
Diffstat (limited to 'textscreen/txt_gui.h')
-rw-r--r-- | textscreen/txt_gui.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/textscreen/txt_gui.h b/textscreen/txt_gui.h index bb41b23d..f745ddd2 100644 --- a/textscreen/txt_gui.h +++ b/textscreen/txt_gui.h @@ -27,6 +27,7 @@ void TXT_DrawWindowFrame(const char *title, int x, int y, int w, int h); void TXT_DrawSeparator(int x, int y, int w); void TXT_DrawString(const char *s); void TXT_DrawUTF8String(const char *s); +int TXT_CanDrawCharacter(unsigned int c); void TXT_DrawHorizScrollbar(int x, int y, int w, int cursor, int range); void TXT_DrawVertScrollbar(int x, int y, int h, int cursor, int range); |