comparison 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
comparison
equal deleted inserted replaced
1481:deb22b9fe970 1482:141528317f4f
360 #endif 360 #endif
361 361
362 old_video_mode=-1; 362 old_video_mode=-1;
363 old_refresh_rate=-1; 363 old_refresh_rate=-1;
364 364
365 if (NULL == (event = SDL_malloc(EVENT_SIZE))) 365 if (NULL == (phevent = SDL_malloc(EVENT_SIZE)))
366 { 366 {
367 SDL_OutOfMemory(); 367 SDL_OutOfMemory();
368 return -1; 368 return -1;
369 } 369 }
370 SDL_memset(event, 0x00, EVENT_SIZE); 370 SDL_memset(phevent, 0x00, EVENT_SIZE);
371 371
372 window = ph_CreateWindow(this); 372 window = ph_CreateWindow(this);
373 if (window == NULL) 373 if (window == NULL)
374 { 374 {
375 SDL_SetError("ph_VideoInit(): Couldn't create video window !\n"); 375 SDL_SetError("ph_VideoInit(): Couldn't create video window !\n");
578 PtUnrealizeWidget(window); 578 PtUnrealizeWidget(window);
579 PtDestroyWidget(window); 579 PtDestroyWidget(window);
580 window=NULL; 580 window=NULL;
581 } 581 }
582 582
583 if (event!=NULL) 583 if (phevent!=NULL)
584 { 584 {
585 SDL_free(event); 585 SDL_free(phevent);
586 event=NULL; 586 phevent=NULL;
587 } 587 }
588 } 588 }
589 589
590 static int ph_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) 590 static int ph_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors)
591 { 591 {