Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzWM.m @ 324:f25f666d609a
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 30 Mar 2002 21:41:01 +0000 |
parents | 767c10b9ec9f |
children | 19e73568a75c |
comparison
equal
deleted
inserted
replaced
323:b7e8038e40ae | 324:f25f666d609a |
---|---|
229 NSSize imgSize = {icon->w, icon->h}; | 229 NSSize imgSize = {icon->w, icon->h}; |
230 pool = [ [ NSAutoreleasePool alloc ] init ]; | 230 pool = [ [ NSAutoreleasePool alloc ] init ]; |
231 SDL_GetClipRect(icon, &rrect); | 231 SDL_GetClipRect(icon, &rrect); |
232 /* create a big endian RGBA surface */ | 232 /* create a big endian RGBA surface */ |
233 mergedSurface = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCALPHA, | 233 mergedSurface = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCALPHA, |
234 icon->w, icon->h, 32, 0xff<<24, 0xff<<16, 0xff<<8, 0xff<<0); | 234 icon->w, icon->h, 32, 0xff<<24, 0xff<<16, 0xff<<8, 0xff<<0); |
235 if (mergedSurface==NULL) { NSLog(@"Error creating surface for | 235 if (mergedSurface==NULL) { |
236 merge"); goto freePool; } | 236 NSLog(@"Error creating surface for merge"); |
237 goto freePool; | |
238 } | |
237 if (SDL_BlitSurface(icon,&rrect,mergedSurface,&rrect)) { | 239 if (SDL_BlitSurface(icon,&rrect,mergedSurface,&rrect)) { |
238 NSLog(@"Error blitting to mergedSurface"); | 240 NSLog(@"Error blitting to mergedSurface"); |
239 goto freePool; | 241 goto freePool; |
240 } | 242 } |
241 if (mask) { | 243 if (mask) { |