(OSX) Simplify
This commit is contained in:
parent
882a66b49a
commit
107b5eec44
|
@ -757,11 +757,7 @@ static void ui_companion_cocoa_notify_list_pushed(void *data,
|
||||||
|
|
||||||
static void *ui_companion_cocoa_get_main_window(void *data)
|
static void *ui_companion_cocoa_get_main_window(void *data)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_COCOA_METAL)
|
|
||||||
return (BRIDGE void *)((RetroArch_OSX*)[[NSApplication sharedApplication] delegate]).window;
|
return (BRIDGE void *)((RetroArch_OSX*)[[NSApplication sharedApplication] delegate]).window;
|
||||||
#elif defined(HAVE_COCOA)
|
|
||||||
return ((RetroArch_OSX*)[[NSApplication sharedApplication] delegate]).window;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_companion_driver_t ui_companion_cocoa = {
|
ui_companion_driver_t ui_companion_cocoa = {
|
||||||
|
|
Loading…
Reference in New Issue