src/events/SDL_events.c
changeset 1336 3692456e7b0f
parent 1330 450721ad5436
child 1358 c71e05b4dc2e
     1.1 --- a/src/events/SDL_events.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/events/SDL_events.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -151,7 +151,7 @@
     1.4  {
     1.5  	/* Reset everything to zero */
     1.6  	SDL_EventThread = NULL;
     1.7 -	memset(&SDL_EventLock, 0, sizeof(SDL_EventLock));
     1.8 +	SDL_memset(&SDL_EventLock, 0, sizeof(SDL_EventLock));
     1.9  
    1.10  	/* Create the lock and set ourselves active */
    1.11  #ifndef DISABLE_THREADS
    1.12 @@ -239,7 +239,7 @@
    1.13  
    1.14  	/* No filter to start with, process most event types */
    1.15  	SDL_EventOK = NULL;
    1.16 -	memset(SDL_ProcessEvents,SDL_ENABLE,sizeof(SDL_ProcessEvents));
    1.17 +	SDL_memset(SDL_ProcessEvents,SDL_ENABLE,sizeof(SDL_ProcessEvents));
    1.18  	SDL_eventstate = ~0;
    1.19  	/* It's not save to call SDL_EventState() yet */
    1.20  	SDL_eventstate &= ~(0x00000001 << SDL_SYSWMEVENT);
    1.21 @@ -306,7 +306,7 @@
    1.22  	{
    1.23  		int here, next;
    1.24  
    1.25 -		/* This can probably be optimized with memcpy() -- careful! */
    1.26 +		/* This can probably be optimized with SDL_memcpy() -- careful! */
    1.27  		if ( --SDL_EventQ.tail < 0 ) {
    1.28  			SDL_EventQ.tail = MAXEVENTS-1;
    1.29  		}
    1.30 @@ -493,7 +493,7 @@
    1.31  	posted = 0;
    1.32  	if ( SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE ) {
    1.33  		SDL_Event event;
    1.34 -		memset(&event, 0, sizeof(event));
    1.35 +		SDL_memset(&event, 0, sizeof(event));
    1.36  		event.type = SDL_SYSWMEVENT;
    1.37  		event.syswm.msg = message;
    1.38  		if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) {