From 03ff08c7460b29d305a56ce647b52e64ff44ea71 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 1 Apr 2011 08:52:11 +0000 Subject: [PATCH] Draw in the main thread as well. --- LockScreen.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LockScreen.mm b/LockScreen.mm index 3644ce1..7284452 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -204,6 +204,7 @@ static float CYScrollViewDecelerationRateNormal; @interface UIWebView (Apple) - (void) setDataDetectorTypes:(int)types; +- (void) _setDrawInWebThread:(BOOL)draw; - (UIScrollView *) _scrollView; - (UIScroller *) _scroller; - (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message; @@ -322,6 +323,9 @@ MSInstanceMessageHook0(BOOL, NSURL, isSpringboardHandledURL) { [webview_ setScalesPageToFit:YES]; + if ([webview_ respondsToSelector:@selector(_setDrawInWebThread:)]) + [webview_ _setDrawInWebThread:NO]; + UIWebDocumentView *document([webview_ _documentView]); WebView *webview([document webView]); WebPreferences *preferences([webview preferences]); -- 2.45.2