mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Fix some tvOS warnings
This commit is contained in:
parent
a4836bbb17
commit
938c8f3abc
@ -186,9 +186,9 @@
|
|||||||
memcpy(dst, src, glyph->width);
|
memcpy(dst, src, glyph->width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(HAVE_COCOATOUCH)
|
||||||
NSUInteger offset = glyph->atlas_offset_y;
|
NSUInteger offset = glyph->atlas_offset_y;
|
||||||
NSUInteger len = glyph->height * _stride;
|
NSUInteger len = glyph->height * _stride;
|
||||||
#if !defined(HAVE_COCOATOUCH)
|
|
||||||
[_buffer didModifyRange:NSMakeRange(offset, len)];
|
[_buffer didModifyRange:NSMakeRange(offset, len)];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ static void apple_gamecontroller_joypad_connect(GCController *controller)
|
|||||||
}
|
}
|
||||||
|
|
||||||
apple_gamecontroller_joypad_register(controller.gamepad);
|
apple_gamecontroller_joypad_register(controller.gamepad);
|
||||||
mfi_joypad_autodetect_add(controller.playerIndex);
|
mfi_joypad_autodetect_add((unsigned)controller.playerIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ void *file_list_get_actiondata_at_offset(const file_list_t *list,
|
|||||||
* or non-contiguous data there, make sure you free it's fields
|
* or non-contiguous data there, make sure you free it's fields
|
||||||
* before calling this function or you might get a memory leak.
|
* before calling this function or you might get a memory leak.
|
||||||
*
|
*
|
||||||
* @param list
|
* @param list List to be freed
|
||||||
*/
|
*/
|
||||||
void file_list_free(file_list_t *list);
|
void file_list_free(file_list_t *list);
|
||||||
|
|
||||||
@ -80,8 +80,8 @@ bool file_list_initialize(file_list_t *list);
|
|||||||
* This function will not change the capacity if nitems is smaller
|
* This function will not change the capacity if nitems is smaller
|
||||||
* than the current capacity.
|
* than the current capacity.
|
||||||
*
|
*
|
||||||
* @param list
|
* @param list The list to open for input
|
||||||
* @param nitems
|
* @param nitems Number of items to reserve space for
|
||||||
* @return whether or not the operation succeeded
|
* @return whether or not the operation succeeded
|
||||||
*/
|
*/
|
||||||
bool file_list_reserve(file_list_t *list, size_t nitems);
|
bool file_list_reserve(file_list_t *list, size_t nitems);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user