/me dumb, sizeof(keymap) != number of elements SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Thu, 07 Sep 2006 20:52:31 +0000
branchSDL-1.2
changeset 3854 f1816773a309
parent 3853 c6d3c5549886
child 3855 b2d9881c8c88
/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
--- a/src/video/ataricommon/SDL_biosevents.c	Tue Sep 05 19:31:48 2006 +0000
+++ b/src/video/ataricommon/SDL_biosevents.c	Thu Sep 07 20:52:31 2006 +0000
@@ -74,7 +74,7 @@
 	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 */
--- a/src/video/ataricommon/SDL_gemdosevents.c	Tue Sep 05 19:31:48 2006 +0000
+++ b/src/video/ataricommon/SDL_gemdosevents.c	Thu Sep 07 20:52:31 2006 +0000
@@ -79,7 +79,7 @@
 	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 */
--- a/src/video/ataricommon/SDL_ikbdevents.c	Tue Sep 05 19:31:48 2006 +0000
+++ b/src/video/ataricommon/SDL_ikbdevents.c	Thu Sep 07 20:52:31 2006 +0000
@@ -79,7 +79,7 @@
 	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 */
--- a/src/video/gem/SDL_gemevents.c	Tue Sep 05 19:31:48 2006 +0000
+++ b/src/video/gem/SDL_gemevents.c	Thu Sep 07 20:52:31 2006 +0000
@@ -93,7 +93,7 @@
 	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 */