aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/speakup/spk_types.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-03-04 15:01:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-09 17:29:14 +0100
commit9831013cbdbd3d06430a1db01d8c32d50c7d1c04 (patch)
tree11f38519fa3f4d9aece31a0f597554b56561e40b /drivers/staging/speakup/spk_types.h
parentspeakup: extend synth buffer to 16bit unicode characters (diff)
downloadwireguard-linux-9831013cbdbd3d06430a1db01d8c32d50c7d1c04.tar.xz
wireguard-linux-9831013cbdbd3d06430a1db01d8c32d50c7d1c04.zip
speakup: convert screen reading to 16bit characters
This adds 16bit character support to most of the screen reading by extending characters to u16 throughout the code. Non-latin1 characters are assumed to be alphabetic type for now. non-latin1 vt_notifier_call-provided characters are not ignored any more, and the 16bit character returned by get_char is not truncated any more. For simplicity, speak_char still only supports latin1 characters. Its direct mode however does support 16bit characters, so in practice this will not be a limitation, non-latin1 languages will be handled by the synthesizer. spelling words does not support direct mode yet, for simplicity for now it will ignore 16bit characters. For simplicity again, speakup messages are left in latin1 for now. Some coding style is fixed along the way. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Okash Khawaja <okash.khawaja@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/spk_types.h')
-rw-r--r--drivers/staging/speakup/spk_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/spk_types.h b/drivers/staging/speakup/spk_types.h
index b07f6cc4f284..9541b9e65840 100644
--- a/drivers/staging/speakup/spk_types.h
+++ b/drivers/staging/speakup/spk_types.h
@@ -55,7 +55,7 @@ struct spk_highlight_color_track {
/* Count of each background color */
unsigned int bgcount[8];
/* Buffer for characters drawn with each background color */
- char highbuf[8][COLOR_BUFFER_SIZE];
+ u16 highbuf[8][COLOR_BUFFER_SIZE];
/* Current index into highbuf */
unsigned int highsize[8];
/* Reading Position for each color */