/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 3854f1816773a309
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
     1.1 --- a/src/video/ataricommon/SDL_biosevents.c	Tue Sep 05 19:31:48 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_biosevents.c	Thu Sep 07 20:52:31 2006 +0000
     1.3 @@ -74,7 +74,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:31:48 2006 +0000
     2.2 +++ b/src/video/ataricommon/SDL_gemdosevents.c	Thu Sep 07 20:52:31 2006 +0000
     2.3 @@ -79,7 +79,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:31:48 2006 +0000
     3.2 +++ b/src/video/ataricommon/SDL_ikbdevents.c	Thu Sep 07 20:52:31 2006 +0000
     3.3 @@ -79,7 +79,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:31:48 2006 +0000
     4.2 +++ b/src/video/gem/SDL_gemevents.c	Thu Sep 07 20:52:31 2006 +0000
     4.3 @@ -93,7 +93,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 */