From: Jay Freeman (saurik) Date: Mon, 10 Nov 2014 16:04:57 +0000 (-0800) Subject: Only allow layer 0 to be used as main framebuffer. X-Git-Tag: v0.9.3500~4 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/7b3b9f6c359838e78e5cdc96f4cf778640ba67d0 Only allow layer 0 to be used as main framebuffer. --- diff --git a/Tweak.mm b/Tweak.mm index 406b284..037f9ad 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -1042,7 +1042,10 @@ MSHook(kern_return_t, IOMobileFramebufferSwapSetLayer, ) { 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;