Skip to content

Commit

Permalink
/me dumb, sizeof(keymap) != number of elements
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Sep 7, 2006
1 parent 0f50748 commit e451f68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/video/ataricommon/SDL_biosevents.c
Expand Up @@ -74,7 +74,7 @@ void AtariBios_InitOSKeymap(_THIS)
SDL_memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard));

/* Initialize keymap */
for ( i=0; i<sizeof(keymap); i++ )
for ( i=0; i<ATARIBIOS_MAXKEYS; i++ )
keymap[i] = SDLK_UNKNOWN;

/* Functions keys */
Expand Down
2 changes: 1 addition & 1 deletion src/video/ataricommon/SDL_gemdosevents.c
Expand Up @@ -79,7 +79,7 @@ void AtariGemdos_InitOSKeymap(_THIS)
SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));

/* Initialize keymap */
for ( i=0; i<sizeof(keymap); i++ )
for ( i=0; i<ATARIBIOS_MAXKEYS; i++ )
keymap[i] = SDLK_UNKNOWN;

/* Functions keys */
Expand Down
2 changes: 1 addition & 1 deletion src/video/ataricommon/SDL_ikbdevents.c
Expand Up @@ -79,7 +79,7 @@ void AtariIkbd_InitOSKeymap(_THIS)
SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, ATARIBIOS_MAXKEYS);

/* Initialize keymap */
for ( i=0; i<sizeof(keymap); i++ )
for ( i=0; i<ATARIBIOS_MAXKEYS; i++ )
keymap[i] = SDLK_UNKNOWN;

/* Functions keys */
Expand Down
2 changes: 1 addition & 1 deletion src/video/gem/SDL_gemevents.c
Expand Up @@ -93,7 +93,7 @@ void GEM_InitOSKeymap(_THIS)
SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));

/* Initialize keymap */
for ( i=0; i<sizeof(keymap); i++ )
for ( i=0; i<ATARIBIOS_MAXKEYS; i++ )
keymap[i] = SDLK_UNKNOWN;

/* Functions keys */
Expand Down

0 comments on commit e451f68

Please sign in to comment.