Mercurial > sdl-ios-xcode
diff src/video/photon/SDL_ph_video.c @ 1482:141528317f4f
QNX changes from Mike Gorchak
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 08 Mar 2006 01:55:32 +0000 |
parents | d910939febfa |
children | 8d9bb0cf2c2a |
line wrap: on
line diff
--- a/src/video/photon/SDL_ph_video.c Tue Mar 07 16:02:59 2006 +0000 +++ b/src/video/photon/SDL_ph_video.c Wed Mar 08 01:55:32 2006 +0000 @@ -362,12 +362,12 @@ old_video_mode=-1; old_refresh_rate=-1; - if (NULL == (event = SDL_malloc(EVENT_SIZE))) + if (NULL == (phevent = SDL_malloc(EVENT_SIZE))) { SDL_OutOfMemory(); return -1; } - SDL_memset(event, 0x00, EVENT_SIZE); + SDL_memset(phevent, 0x00, EVENT_SIZE); window = ph_CreateWindow(this); if (window == NULL) @@ -580,10 +580,10 @@ window=NULL; } - if (event!=NULL) + if (phevent!=NULL) { - SDL_free(event); - event=NULL; + SDL_free(phevent); + phevent=NULL; } }