mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
replaced confusing ifdef with a more concise #if TARGET_OS_OSX
This commit is contained in:
parent
3dc716299f
commit
42e4854245
@ -114,7 +114,7 @@ typedef struct
|
||||
} apple_frontend_settings_t;
|
||||
extern apple_frontend_settings_t apple_frontend_settings;
|
||||
|
||||
#if !defined(HAVE_COCOATOUCH) && (defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL))
|
||||
#if TARGET_OS_OSX
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@interface CocoaView : NSView
|
||||
|
@ -55,7 +55,7 @@ void *glkitview_init(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_COCOATOUCH) && (defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL))
|
||||
#if TARGET_OS_OSX
|
||||
- (void)scrollWheel:(NSEvent *)theEvent {
|
||||
cocoa_input_data_t *apple = (cocoa_input_data_t*)input_driver_get_data();
|
||||
(void)apple;
|
||||
@ -77,7 +77,7 @@ void *glkitview_init(void);
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
#if !defined(HAVE_COCOATOUCH) && (defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL))
|
||||
#if TARGET_OS_OSX
|
||||
[self setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||
#endif
|
||||
|
||||
@ -115,7 +115,7 @@ void *glkitview_init(void);
|
||||
return self;
|
||||
}
|
||||
|
||||
#if !defined(HAVE_COCOATOUCH) && (defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL))
|
||||
#if TARGET_OS_OSX
|
||||
- (void)setFrame:(NSRect)frameRect
|
||||
{
|
||||
[super setFrame:frameRect];
|
||||
|
Loading…
x
Reference in New Issue
Block a user