iOS: Enable NSCodec, fixed RFX to Win8, resize sanity check

This commit is contained in:
Martin Fleisz
2013-03-05 13:25:50 +01:00
parent 7d58aac24f
commit 14bd37e8b2
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]);