From 26026681a2962d87aac896b6e9b3a30a122d1f0c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 7 Oct 2011 08:15:22 +0000 Subject: [PATCH] OMFG, bool alignment BAD. --- Tweak.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_; -- 2.45.2