From 79dda43dbb087658e64065fbab93bbd979c2429a Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 25 Jun 2015 17:44:11 +0200 Subject: [PATCH] (CGL) Some more CXX_BUILD fixes --- gfx/drivers_context/cgl_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/cgl_ctx.c b/gfx/drivers_context/cgl_ctx.c index 9209ec29c2..af60ea663b 100644 --- a/gfx/drivers_context/cgl_ctx.c +++ b/gfx/drivers_context/cgl_ctx.c @@ -259,9 +259,9 @@ static CGSSurfaceID attach_gl_context_to_window(CGLContextObj glCtx, wins = CGWindowListCopyWindowInfo(kCGWindowListOptionIncludingWindow, wid); /* expect one result only */ win = (CFDictionaryRef)CFArrayGetValueAtIndex(wins, 0); bnd = (CFDictionaryRef)CFDictionaryGetValue(win, kCGWindowBounds); - CFNumberGetValue(CFDictionaryGetValue(bnd, CFSTR("Width")), + CFNumberGetValue((CFNumberRef)CFDictionaryGetValue((CFDictionaryRef)bnd, CFSTR("Width")), kCFNumberFloat64Type, &w); - CFNumberGetValue(CFDictionaryGetValue(bnd, CFSTR("Height")), + CFNumberGetValue((CFNumberRef)CFDictionaryGetValue(bnd, CFSTR("Height")), kCFNumberFloat64Type, &h); CFRelease(wins);