From: divverent Date: Wed, 5 Aug 2009 18:41:55 +0000 (+0000) Subject: maybe it compiles now X-Git-Tag: xonotic-v0.1.0preview~1532 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79ca4ac280ee57ff813bc650d175a0e5c742e6d5;p=xonotic%2Fdarkplaces.git maybe it compiles now git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9097 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)