From 9f1f7aa903a9fac8d670dcda3ea7251f1d847892 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 10 Nov 2014 08:02:49 -0800 Subject: [PATCH] Use BOOL type in IOMobileFramebufferIsMainDisplay. --- Tweak.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index 30a592f..406b284 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -164,7 +164,7 @@ extern "C" kern_return_t IOMobileFramebufferSwapSetLayer( ); extern "C" void IOMobileFramebufferGetDisplaySize(IOMobileFramebufferRef connect, CGSize *size); -extern "C" void IOMobileFramebufferIsMainDisplay(IOMobileFramebufferRef connect, int *main); +void (*$IOMobileFramebufferIsMainDisplay)(IOMobileFramebufferRef, BOOL *); extern "C" { IOHIDEventRef IOHIDEventCreateKeyboardEvent(CFAllocatorRef allocator, uint64_t time, uint16_t page, uint16_t usage, Boolean down, IOHIDEventOptionBits flags); @@ -976,7 +976,6 @@ static void VNCNotifyEnabled( VNCEnabled(); } -void (*$IOMobileFramebufferIsMainDisplay)(IOMobileFramebufferRef, int *); static IOMobileFramebufferRef main_; static IOSurfaceRef layer_; @@ -1041,7 +1040,7 @@ MSHook(kern_return_t, IOMobileFramebufferSwapSetLayer, CGRect frame, int flags ) { - int main(false); + BOOL main; if (_unlikely(buffer == NULL)) main = fb == main_; -- 2.47.2