]> git.saurik.com Git - veency.git/commitdiff
Refix SurfaceAcceleratorTransferSurface prototype.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 10 Nov 2014 15:58:16 +0000 (07:58 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 10 Nov 2014 16:00:05 +0000 (08:00 -0800)
Tweak.mm

index dc0b1aa3da015d1f942be00a574df66bf057f031..c997fdca8ada8b5c6b68af42560c82f5f8bd9d0f 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -140,7 +140,7 @@ extern "C" void IOSurfaceFlushProcessorCaches(IOSurfaceRef buffer);
 typedef void *IOSurfaceAcceleratorRef;
 
 extern "C" int IOSurfaceAcceleratorCreate(CFAllocatorRef allocator, void *type, IOSurfaceAcceleratorRef *accel);
-extern "C" unsigned int IOSurfaceAcceleratorTransferSurface(IOSurfaceAcceleratorRef accelerator, IOSurfaceRef dest, IOSurfaceRef src, CFDictionaryRef options/*, void *, void *, void **/);
+extern "C" unsigned int IOSurfaceAcceleratorTransferSurface(IOSurfaceAcceleratorRef accelerator, IOSurfaceRef dest, IOSurfaceRef src, void *, void *, void *, void *);
 
 typedef void *IOMobileFramebufferRef;
 
@@ -181,7 +181,6 @@ static const size_t BitsPerSample = 8;
 
 static IOSurfaceAcceleratorRef accelerator_;
 static IOSurfaceRef buffer_;
-static CFDictionaryRef options_;
 
 static NSMutableSet *handlers_;
 static rfbScreenInfoPtr screen_;
@@ -1002,7 +1001,7 @@ static void OnLayer(IOMobileFramebufferRef fb, IOSurfaceRef layer) {
                 VNCBlack();
         } else {
             if (accelerator_ != NULL)
-                IOSurfaceAcceleratorTransferSurface(accelerator_, layer, buffer_, options_);
+                IOSurfaceAcceleratorTransferSurface(accelerator_, layer, buffer_, NULL, NULL, NULL, NULL);
             else {
                 IOSurfaceLock(layer, 2);
                 rfbPixel *data(reinterpret_cast<rfbPixel *>(IOSurfaceGetBaseAddress(layer)));
@@ -1147,8 +1146,5 @@ MSInitialize {
 
     cfEvent_ = CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, reinterpret_cast<UInt8 *>(&event_), sizeof(event_), kCFAllocatorNull);
 
-    options_ = (CFDictionaryRef) [[NSDictionary dictionaryWithObjectsAndKeys:
-    nil] retain];
-
     [pool release];
 }