comparison src/video/ggi/SDL_ggievents.c @ 1379:c0a74f199ecf

Use only safe string functions
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 23:46:34 +0000
parents 19418e4422cb
children d910939febfa
comparison
equal deleted inserted replaced
1378:dc0e13e7e1ae 1379:c0a74f199ecf
121 void GGI_InitOSKeymap(_THIS) 121 void GGI_InitOSKeymap(_THIS)
122 { 122 {
123 int i; 123 int i;
124 124
125 /* Initialize the GGI key translation table */ 125 /* Initialize the GGI key translation table */
126 for ( i=0; i<SDL_TABLESIZE(keymap); ++i ) 126 for ( i=0; i<SDL_arraysize(keymap); ++i )
127 keymap[i] = SDLK_UNKNOWN; 127 keymap[i] = SDLK_UNKNOWN;
128 128
129 keymap[SCANCODE_ESCAPE] = SDLK_ESCAPE; 129 keymap[SCANCODE_ESCAPE] = SDLK_ESCAPE;
130 keymap[SCANCODE_1] = SDLK_1; 130 keymap[SCANCODE_1] = SDLK_1;
131 keymap[SCANCODE_2] = SDLK_2; 131 keymap[SCANCODE_2] = SDLK_2;