/me dumb, sizeof(keymap != number of elements
authorPatrice Mandin <patmandin@gmail.com>
Thu, 07 Sep 2006 20:50:13 +0000
changeset 2019d20f4510c718
parent 2018 41a5fc1825b9
child 2020 091bb215baf9
/me dumb, sizeof(keymap != number of elements
src/video/ataricommon/SDL_biosevents.c
src/video/ataricommon/SDL_gemdosevents.c
src/video/ataricommon/SDL_ikbdevents.c
src/video/gem/SDL_gemevents.c
     1.1 --- a/src/video/ataricommon/SDL_biosevents.c	Tue Sep 05 19:32:35 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_biosevents.c	Thu Sep 07 20:50:13 2006 +0000
     1.3 @@ -76,7 +76,7 @@
     1.4      SDL_memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard));
     1.5  
     1.6      /* Initialize keymap */
     1.7 -    for (i = 0; i < sizeof(keymap); i++)
     1.8 +    for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
     1.9          keymap[i] = SDLK_UNKNOWN;
    1.10  
    1.11      /* Functions keys */
     2.1 --- a/src/video/ataricommon/SDL_gemdosevents.c	Tue Sep 05 19:32:35 2006 +0000
     2.2 +++ b/src/video/ataricommon/SDL_gemdosevents.c	Thu Sep 07 20:50:13 2006 +0000
     2.3 @@ -82,7 +82,7 @@
     2.4      SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));
     2.5  
     2.6      /* Initialize keymap */
     2.7 -    for (i = 0; i < sizeof(keymap); i++)
     2.8 +    for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
     2.9          keymap[i] = SDLK_UNKNOWN;
    2.10  
    2.11      /* Functions keys */
     3.1 --- a/src/video/ataricommon/SDL_ikbdevents.c	Tue Sep 05 19:32:35 2006 +0000
     3.2 +++ b/src/video/ataricommon/SDL_ikbdevents.c	Thu Sep 07 20:50:13 2006 +0000
     3.3 @@ -82,7 +82,7 @@
     3.4      SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, ATARIBIOS_MAXKEYS);
     3.5  
     3.6      /* Initialize keymap */
     3.7 -    for (i = 0; i < sizeof(keymap); i++)
     3.8 +    for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
     3.9          keymap[i] = SDLK_UNKNOWN;
    3.10  
    3.11      /* Functions keys */
     4.1 --- a/src/video/gem/SDL_gemevents.c	Tue Sep 05 19:32:35 2006 +0000
     4.2 +++ b/src/video/gem/SDL_gemevents.c	Thu Sep 07 20:50:13 2006 +0000
     4.3 @@ -95,7 +95,7 @@
     4.4      SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));
     4.5  
     4.6      /* Initialize keymap */
     4.7 -    for (i = 0; i < sizeof(keymap); i++)
     4.8 +    for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
     4.9          keymap[i] = SDLK_UNKNOWN;
    4.10  
    4.11      /* Functions keys */