From d25c25339d8878980c5f45cd1ee602767ffe0f33 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 17 Jan 2012 12:01:51 +0100 Subject: NEWT/OSX: Cleanup NewtMacWindow header (sort, fix and add declarations); Remove warning of unused var --- src/newt/native/MacWindow.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newt/native/MacWindow.m') diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m index 1dcfacb6d..5470be5ae 100644 --- a/src/newt/native/MacWindow.m +++ b/src/newt/native/MacWindow.m @@ -473,9 +473,10 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_macosx_MacScreen_setScreenMod CGDirectDisplayID display = NewtScreen_getCGDirectDisplayIDByNSScreen(screen); CFArrayRef availableModes = CGDisplayAvailableModes(display); +#ifdef VERBOSE_ON CFIndex numberOfAvailableModes = CFArrayGetCount(availableModes); CFIndex numberOfAvailableModesRots = ROTMODES_PER_REALMODE * numberOfAvailableModes; - +#endif CFDictionaryRef mode = (CFDictionaryRef)CFArrayGetValueAtIndex(availableModes, mode_idx / ROTMODES_PER_REALMODE); // mode = CGDisplayModeRetain(mode); // 10.6 on CGDisplayModeRef -- cgit v1.2.3