Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

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 ead5515 commit 269c4bb
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 @@ -76,7 +76,7 @@ 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 @@ -82,7 +82,7 @@ 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 @@ -82,7 +82,7 @@ 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 @@ -95,7 +95,7 @@ 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 269c4bb

Please sign in to comment.