src/video/gem/SDL_gemevents.c
changeset 1336 3692456e7b0f
parent 1312 c9b51268668f
child 1350 adc8ff3c9597
     1.1 --- a/src/video/gem/SDL_gemevents.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -89,9 +89,9 @@
     1.4  {
     1.5  	int i;
     1.6  
     1.7 -	memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard));
     1.8 -	memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard));
     1.9 -	memset(gem_currentascii, 0, sizeof(gem_currentascii));
    1.10 +	SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard));
    1.11 +	SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard));
    1.12 +	SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));
    1.13  
    1.14  	/* Initialize keymap */
    1.15  	for ( i=0; i<sizeof(keymap); i++ )
    1.16 @@ -134,7 +134,7 @@
    1.17  	int i;
    1.18  	SDL_keysym	keysym;
    1.19  
    1.20 -	memset(gem_currentkeyboard,0,sizeof(gem_currentkeyboard));
    1.21 +	SDL_memset(gem_currentkeyboard,0,sizeof(gem_currentkeyboard));
    1.22  	prevkc = prevks = 0;
    1.23  	
    1.24  	for (;;)
    1.25 @@ -215,7 +215,7 @@
    1.26  				TranslateKey(i, gem_currentascii[i], &keysym, SDL_FALSE));
    1.27  	}
    1.28  
    1.29 -	memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard));
    1.30 +	SDL_memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard));
    1.31  
    1.32  	/* Refresh window name ? */
    1.33  	if (GEM_refresh_name) {