]> git.saurik.com Git - veency.git/commitdiff
Only allow layer 0 to be used as main framebuffer.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 10 Nov 2014 16:04:57 +0000 (08:04 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 10 Nov 2014 16:04:57 +0000 (08:04 -0800)
Tweak.mm

index 406b284e4b07cb2e9fa9b1f4d8e5c52aba6d2732..037f9adcbc409db4cce786897a2a6b252110fc83 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -1042,7 +1042,10 @@ MSHook(kern_return_t, IOMobileFramebufferSwapSetLayer,
 ) {
     BOOL main;
 
 ) {
     BOOL main;
 
-    if (_unlikely(buffer == NULL))
+    if (false);
+    else if (_unlikely(layer != 0))
+        main = false;
+    else if (_unlikely(buffer == NULL))
         main = fb == main_;
     else if (_unlikely(fb == NULL))
         main = false;
         main = fb == main_;
     else if (_unlikely(fb == NULL))
         main = false;