Merge pull request #1035 from mfleisz/iosupdate

iOS: Enable NSCodec, fixed RFX to Win8, resize sanity check
This commit is contained in:
Marc-André Moreau 2013-03-05 04:59:05 -08:00
commit 234356e60c
2 changed files with 5 additions and 1 deletions

View File

@ -99,8 +99,12 @@ NSString* TSXSessionDidFailToConnectNotification = @"TSXSessionDidFailToConnect"
settings->ColorDepth = 32;
settings->LargePointerFlag = TRUE;
settings->FrameMarkerCommandEnabled = TRUE;
settings->FrameAcknowledge = 10;
}
// enable NSCodec
settings->NSCodec = TRUE;
// Performance flags
settings->DisableWallpaper = ![_params boolForKey:@"perf_show_desktop" with3GEnabled:connected_via_3g];
settings->DisableFullWindowDrag = ![_params boolForKey:@"perf_window_dragging" with3GEnabled:connected_via_3g];

View File

@ -24,7 +24,7 @@
- (void)drawRect:(CGRect)rect
{
if(_session != nil)
if(_session != nil && [_session bitmapContext])
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGImageRef cgImage = CGBitmapContextCreateImage([_session bitmapContext]);