equal
deleted
inserted
replaced
149 } |
149 } |
150 return; |
150 return; |
151 } |
151 } |
152 |
152 |
153 -(void) drawingThread { |
153 -(void) drawingThread { |
154 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
154 @autoreleasepool { |
|
155 |
155 uint8_t unpackedMap[128*32*8]; |
156 uint8_t unpackedMap[128*32*8]; |
156 [self engineProtocol:unpackedMap]; |
157 [self engineProtocol:unpackedMap]; |
157 |
158 |
158 // http://developer.apple.com/mac/library/qa/qa2001/qa1037.html |
159 // http://developer.apple.com/mac/library/qa/qa2001/qa1037.html |
159 CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceGray(); |
160 CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceGray(); |
177 withObject:nil |
178 withObject:nil |
178 waitUntilDone:NO]; |
179 waitUntilDone:NO]; |
179 [self performSelectorOnMainThread:@selector(removeIndicator) |
180 [self performSelectorOnMainThread:@selector(removeIndicator) |
180 withObject:nil |
181 withObject:nil |
181 waitUntilDone:NO]; |
182 waitUntilDone:NO]; |
182 |
183 |
183 [pool release]; |
184 } |
184 } |
185 } |
185 |
186 |
186 -(void) updatePreviewWithSeed:(NSString *)seed { |
187 -(void) updatePreviewWithSeed:(NSString *)seed { |
187 // remove the current preview and title |
188 // remove the current preview and title |
188 [self setImage:nil forState:UIControlStateNormal]; |
189 [self setImage:nil forState:UIControlStateNormal]; |