Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_ph_image.c @ 2735:204be4fc2726
Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 27 Aug 2008 15:10:03 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2734:dd25eabe441c | 2735:204be4fc2726 |
---|---|
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; |