mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
More CXX_BUILD fixes
This commit is contained in:
parent
1b34dd4ce0
commit
227c986143
@ -257,8 +257,8 @@ static CGSSurfaceID attach_gl_context_to_window(CGLContextObj glCtx,
|
||||
/* FIXME/TODO - CGWindowListCopyWindowInfo was introduced on OSX 10.5,
|
||||
* find alternative for lower versions. */
|
||||
wins = CGWindowListCopyWindowInfo(kCGWindowListOptionIncludingWindow, wid); /* expect one result only */
|
||||
win = CFArrayGetValueAtIndex(wins, 0);
|
||||
bnd = CFDictionaryGetValue(win, kCGWindowBounds);
|
||||
win = (CFDictionaryRef)CFArrayGetValueAtIndex(wins, 0);
|
||||
bnd = (CFDictionaryRef)CFDictionaryGetValue(win, kCGWindowBounds);
|
||||
CFNumberGetValue(CFDictionaryGetValue(bnd, CFSTR("Width")),
|
||||
kCFNumberFloat64Type, &w);
|
||||
CFNumberGetValue(CFDictionaryGetValue(bnd, CFSTR("Height")),
|
||||
|
@ -230,7 +230,7 @@ static void iohidmanager_hid_device_remove(void *data, IOReturn result, void* se
|
||||
static int32_t iohidmanager_hid_device_get_int_property(IOHIDDeviceRef device, CFStringRef key)
|
||||
{
|
||||
int32_t value;
|
||||
CFNumberRef ref = IOHIDDeviceGetProperty(device, key);
|
||||
CFNumberRef ref = (CFNumberRef)IOHIDDeviceGetProperty(device, key);
|
||||
|
||||
if (ref)
|
||||
{
|
||||
@ -256,7 +256,7 @@ static uint16_t iohidmanager_hid_device_get_product_id(IOHIDDeviceRef device)
|
||||
|
||||
static void iohidmanager_hid_device_get_product_string(IOHIDDeviceRef device, char *buf, size_t len)
|
||||
{
|
||||
CFStringRef ref = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDProductKey));
|
||||
CFStringRef ref = (CFStringRef)IOHIDDeviceGetProperty(device, CFSTR(kIOHIDProductKey));
|
||||
|
||||
if (ref)
|
||||
CFStringGetCString(ref, buf, len, kCFStringEncodingUTF8);
|
||||
|
Loading…
Reference in New Issue
Block a user