Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_ph_image.c @ 2698:e1da92da346c gsoc2008_nds
Clean up.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Wed, 27 Aug 2008 04:23:38 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2697:c9121b04cffa | 2698:e1da92da346c |
---|---|
242 ph_DestroyImage(this, screen); | 242 ph_DestroyImage(this, screen); |
243 return -1; | 243 return -1; |
244 } | 244 } |
245 | 245 |
246 if ((screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) { | 246 if ((screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) { |
247 OCImage.FrameData1 = | 247 OCImage.FrameData1 = (unsigned char *) |
248 (unsigned char *) PdGetOffscreenContextPtr(OCImage. | 248 PdGetOffscreenContextPtr(OCImage.offscreen_backcontext); |
249 offscreen_backcontext); | |
250 if (OCImage.FrameData1 == NULL) { | 249 if (OCImage.FrameData1 == NULL) { |
251 SDL_SetError | 250 SDL_SetError |
252 ("ph_SetupFullScreenImage(back): PdGetOffscreenContextPtr() function failed !\n"); | 251 ("ph_SetupFullScreenImage(back): PdGetOffscreenContextPtr() function failed !\n"); |
253 ph_DestroyImage(this, screen); | 252 ph_DestroyImage(this, screen); |
254 return -1; | 253 return -1; |