Commit d627b7cc authored by Juho Vähä-Herttua's avatar Juho Vähä-Herttua Committed by Jean-Baptiste Kempf

qt4: Get rid of towlower in favor of portability

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>

(cherry picked from commit fb48e363)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 67f568c9
...@@ -391,12 +391,13 @@ int qtEventToVLCKey( QKeyEvent *e ) ...@@ -391,12 +391,13 @@ int qtEventToVLCKey( QKeyEvent *e )
uint32_t i_vlck = 0; uint32_t i_vlck = 0;
if( qtk <= 0xff ) if( qtk <= 0xff )
/* VLC and X11 use lowercase whereas Qt uses uppercase */ {
#if defined( __STDC_ISO_10646__ ) || defined( _WIN32 ) /* VLC and X11 use lowercase whereas Qt uses uppercase, this
i_vlck = towlower( qtk ); * method should be equal to towlower in case of latin1 */
#else if( qtk >= 'A' && qtk <= 'Z' ) i_vlck = qtk+32;
# error FIXME else if( qtk >= 0xC0 && qtk <= 0xDE && qtk != 0xD7) i_vlck = qtk+32;
#endif else i_vlck = qtk;
}
else else
{ {
const vlc_qt_key_t *map; const vlc_qt_key_t *map;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment