From: Jay Freeman (saurik) Date: Fri, 7 Oct 2011 08:15:22 +0000 (+0000) Subject: OMFG, bool alignment BAD. X-Git-Tag: v0.9.3377^0 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/26026681a2962d87aac896b6e9b3a30a122d1f0c OMFG, bool alignment BAD. --- diff --git a/Tweak.mm b/Tweak.mm index ff6118d..eb27f15 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -646,7 +646,7 @@ static void VNCNotifyEnabled( VNCEnabled(); } -void (*$IOMobileFramebufferIsMainDisplay)(IOMobileFramebufferRef, bool *); +void (*$IOMobileFramebufferIsMainDisplay)(IOMobileFramebufferRef, int *); static IOMobileFramebufferRef main_; static CoreSurfaceBufferRef layer_; @@ -709,7 +709,7 @@ MSHook(kern_return_t, IOMobileFramebufferSwapSetLayer, CGRect frame, int flags ) { - bool main(false); + int main(false); if (_unlikely(buffer == NULL)) main = fb == main_;