From 79ca4ac280ee57ff813bc650d175a0e5c742e6d5 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 5 Aug 2009 18:41:55 +0000 Subject: [PATCH] maybe it compiles now git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9097 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_agl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_agl.c b/vid_agl.c index cffbe855..0c0fd7a7 100644 --- a/vid_agl.c +++ b/vid_agl.c @@ -1133,7 +1133,7 @@ static bool GetDictionaryBoolean(CFDictionaryRef d, const void *key) long GetDictionaryLong(CFDictionaryRef d, const void *key) { long value = 0; - CFBooleanRef ref = (CFBooleanRef) CFDictionaryGetValue(d, key); + CFNumberRef ref = (CFNumberRef) CFDictionaryGetValue(d, key); if(ref) CFNumberGetValue(ref, kCFNumberLongType, &value); return value; @@ -1141,12 +1141,12 @@ long GetDictionaryLong(CFDictionaryRef d, const void *key) size_t VID_ListModes(vid_mode_t *modes, size_t maxcount) { + CGDirectDisplayID mainDisplay = CGMainDisplayID(); CFArrayRef vidmodes = CGDisplayAvailableModes(mainDisplay); CFDictionaryRef thismode; unsigned int n = CFArrayGetCount(vidmodes); unsigned int i; size_t k; - CGDirectDisplayID mainDisplay = CGMainDisplayID(); k = 0; for(i = 0; i < n; ++i) -- 2.39.2