equal
deleted
inserted
replaced
86 self.view.frame = CGRectMake(screen.size.height, 0, 200, VIEW_HEIGHT); |
86 self.view.frame = CGRectMake(screen.size.height, 0, 200, VIEW_HEIGHT); |
87 [UIView commitAnimations]; |
87 [UIView commitAnimations]; |
88 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; |
88 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; |
89 } |
89 } |
90 |
90 |
91 // HW_chatEnd(); |
91 SDL_iPhoneKeyboardHide((SDL_Window *)HW_getSDLWindow()); |
92 // SDL_iPhoneKeyboardHide((SDL_Window *)HW_getSDLWindow()); |
|
93 |
92 |
94 if (shouldTakeScreenshot) { |
93 if (shouldTakeScreenshot) { |
95 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Please wait" |
94 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Please wait" |
96 message:nil |
95 message:nil |
97 delegate:nil |
96 delegate:nil |
107 |
106 |
108 // all these hacks because of the PAUSE caption on top of everything... |
107 // all these hacks because of the PAUSE caption on top of everything... |
109 [self performSelector:@selector(saveCurrentScreenToPhotoAlbum:) withObject:alert afterDelay:0.3]; |
108 [self performSelector:@selector(saveCurrentScreenToPhotoAlbum:) withObject:alert afterDelay:0.3]; |
110 } |
109 } |
111 shouldTakeScreenshot = NO; |
110 shouldTakeScreenshot = NO; |
112 |
|
113 } |
111 } |
114 |
112 |
115 #pragma mark - |
113 #pragma mark - |
116 #pragma mark tableView methods |
114 #pragma mark tableView methods |
117 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
115 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
200 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, VIEW_HEIGHT); |
198 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, VIEW_HEIGHT); |
201 [UIView commitAnimations]; |
199 [UIView commitAnimations]; |
202 } |
200 } |
203 |
201 |
204 if ([actionSheet cancelButtonIndex] != buttonIndex) { |
202 if ([actionSheet cancelButtonIndex] != buttonIndex) { |
205 if (IS_DUALHEAD()) |
203 SDL_iPhoneKeyboardHide((SDL_Window *)HW_getSDLWindow()); |
206 [[NSNotificationCenter defaultCenter] postNotificationName:@"remove overlay" object:nil]; |
|
207 HW_terminate(NO); |
204 HW_terminate(NO); |
208 } |
205 } |
209 } |
206 } |
210 |
207 |
|
208 #pragma mark - |
211 #pragma mark save screenshot |
209 #pragma mark save screenshot |
212 //by http://www.bit-101.com/blog/?p=1861 |
210 //by http://www.bit-101.com/blog/?p=1861 |
213 // callback for CGDataProviderCreateWithData |
211 // callback for CGDataProviderCreateWithData |
214 void releaseData(void *info, const void *data, size_t dataSize) { |
212 void releaseData(void *info, const void *data, size_t dataSize) { |
215 DLog(@"freeing raw data\n"); |
213 DLog(@"freeing raw data\n"); |