Mercurial > sdl-ios-xcode
comparison src/events/SDL_active.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | 450721ad5436 |
children | c71e05b4dc2e |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
71 | 71 |
72 /* Post the event, if desired */ | 72 /* Post the event, if desired */ |
73 posted = 0; | 73 posted = 0; |
74 if ( SDL_ProcessEvents[SDL_ACTIVEEVENT] == SDL_ENABLE ) { | 74 if ( SDL_ProcessEvents[SDL_ACTIVEEVENT] == SDL_ENABLE ) { |
75 SDL_Event event; | 75 SDL_Event event; |
76 memset(&event, 0, sizeof(event)); | 76 SDL_memset(&event, 0, sizeof(event)); |
77 event.type = SDL_ACTIVEEVENT; | 77 event.type = SDL_ACTIVEEVENT; |
78 event.active.gain = gain; | 78 event.active.gain = gain; |
79 event.active.state = state; | 79 event.active.state = state; |
80 if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) { | 80 if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) { |
81 posted = 1; | 81 posted = 1; |