]> git.saurik.com Git - cydget.git/commitdiff
Only turn off WebThread on <3.2.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 1 Apr 2011 08:53:54 +0000 (08:53 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 1 Apr 2011 08:53:54 +0000 (08:53 +0000)
LockScreen.mm

index 7284452ebd8de2380cec28464df9bcff0fc1d34e..c1d23347880b1e868bb0af8dbe2d71687fc08c7a 100644 (file)
@@ -323,8 +323,9 @@ MSInstanceMessageHook0(BOOL, NSURL, isSpringboardHandledURL) {
 
         [webview_ setScalesPageToFit:YES];
 
-        if ([webview_ respondsToSelector:@selector(_setDrawInWebThread:)])
-            [webview_ _setDrawInWebThread:NO];
+        if (kCFCoreFoundationVersionNumber < 478.61)
+            if ([webview_ respondsToSelector:@selector(_setDrawInWebThread:)])
+                [webview_ _setDrawInWebThread:NO];
 
         UIWebDocumentView *document([webview_ _documentView]);
         WebView *webview([document webView]);
@@ -1000,5 +1001,8 @@ MSClassHook(WebView)
 MSMetaClassHook(WebView)
 
 MSClassMessageHook0(void, WebView, enableWebThread) {
+    if (kCFCoreFoundationVersionNumber >= 478.61)
+        return MSOldCall();
+
     NSLog(@"-[WebView enableWebThread]");
 }