comparison src/video/photon/SDL_phyuv.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 c9b51268668f
children 604d73db6802
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
139 i=0; 139 i=0;
140 140
141 overlay->hwdata->ischromakey=0; 141 overlay->hwdata->ischromakey=0;
142 142
143 do { 143 do {
144 memset(&overlay->hwdata->caps, 0x00, sizeof(PgScalerCaps_t)); 144 SDL_memset(&overlay->hwdata->caps, 0x00, sizeof(PgScalerCaps_t));
145 overlay->hwdata->caps.size = sizeof(PgScalerCaps_t); 145 overlay->hwdata->caps.size = sizeof(PgScalerCaps_t);
146 rtncode = PgGetScalerCapabilities(overlay->hwdata->channel, i, &overlay->hwdata->caps); 146 rtncode = PgGetScalerCapabilities(overlay->hwdata->channel, i, &overlay->hwdata->caps);
147 if (rtncode==0) 147 if (rtncode==0)
148 { 148 {
149 if (overlay->hwdata->caps.format==format) 149 if (overlay->hwdata->caps.format==format)
496 return; 496 return;
497 } 497 }
498 498
499 overlay->hwdata->CurrentFrameData = NULL; 499 overlay->hwdata->CurrentFrameData = NULL;
500 500
501 free(overlay->hwdata->FrameData0); 501 SDL_free(overlay->hwdata->FrameData0);
502 free(overlay->hwdata->FrameData1); 502 SDL_free(overlay->hwdata->FrameData1);
503 overlay->hwdata->FrameData0 = NULL; 503 overlay->hwdata->FrameData0 = NULL;
504 overlay->hwdata->FrameData1 = NULL; 504 overlay->hwdata->FrameData1 = NULL;
505 free(overlay->hwdata); 505 SDL_free(overlay->hwdata);
506 } 506 }