diff options
author | Tim Angus <tim@ngus.net> | 2006-04-16 00:38:56 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-04-16 00:38:56 +0000 |
commit | dfa4bb52a7ac0b1f99d1ce9f78ec0ffbb7d7febc (patch) | |
tree | 5a9285a1e1b232615ad964efc09237fe2d0b60b1 /src/unix/sdl_glimp.c | |
parent | 85a7e9ef79326422e1fea85d7668f37c24c3dd93 (diff) |
* Merged ioq3-r708
Diffstat (limited to 'src/unix/sdl_glimp.c')
-rw-r--r-- | src/unix/sdl_glimp.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/unix/sdl_glimp.c b/src/unix/sdl_glimp.c index c286bf72..f7720790 100644 --- a/src/unix/sdl_glimp.c +++ b/src/unix/sdl_glimp.c @@ -90,9 +90,6 @@ typedef void *QGLContext; static QGLContext opengl_context; -#define WINDOW_CLASS_NAME "Tremulous" -#define WINDOW_CLASS_NAME_BRIEF "Tremulous" - //#define KBD_DBG typedef enum @@ -266,7 +263,14 @@ static const char *XLateKey(SDL_keysym *keysym, int *key) //else if (ch >= 'A' && ch <= 'Z') // ch = ch - 'A' + 'a'; - buf[0] = ch; + // tjw: translate K_BACKSPACE to ctrl-h for MACOS_X (others?) + if (ch == K_BACKSPACE) + { + *key = 'h' - 'a' + 1; + buf[0] = *key; + } + else + buf[0] = ch; } return buf; @@ -633,7 +637,7 @@ static int GLW_SetMode( const char *drivername, int mode, qboolean fullscreen ) SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, tstencilbits ); SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); - SDL_WM_SetCaption(WINDOW_CLASS_NAME, WINDOW_CLASS_NAME_BRIEF); + SDL_WM_SetCaption(CLIENT_WINDOW_TITLE, CLIENT_WINDOW_ICON); SDL_ShowCursor(0); SDL_EnableUNICODE(1); SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); |