From 0aafcdbb4c983c9c9d3f5e635498d3e004e908ac Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 19 Dec 2024 22:57:36 +0000 Subject: [PATCH] OpenGL: Adjust formatting to reduce line lengths --- modules/juce_opengl/native/juce_OpenGL_mac.h | 23 ++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/modules/juce_opengl/native/juce_OpenGL_mac.h b/modules/juce_opengl/native/juce_OpenGL_mac.h index c5efcc0e87..c3bf44fced 100644 --- a/modules/juce_opengl/native/juce_OpenGL_mac.h +++ b/modules/juce_opengl/native/juce_OpenGL_mac.h @@ -308,10 +308,25 @@ public: { MouseForwardingNSOpenGLViewClass() : ObjCClass ("JUCEGLView_") { - addMethod (@selector (rightMouseDown:), [] (id self, SEL, NSEvent* ev) { [[(NSOpenGLView*) self superview] rightMouseDown: ev]; }); - addMethod (@selector (rightMouseUp:), [] (id self, SEL, NSEvent* ev) { [[(NSOpenGLView*) self superview] rightMouseUp: ev]; }); - addMethod (@selector (acceptsFirstMouse:), [] (id, SEL, NSEvent*) -> BOOL { return YES; }); - addMethod (@selector (accessibilityHitTest:), [] (id self, SEL, NSPoint p) -> id { return [[(NSOpenGLView*) self superview] accessibilityHitTest: p]; }); + addMethod (@selector (rightMouseDown:), [] (id self, SEL, NSEvent* ev) + { + [[(NSOpenGLView*) self superview] rightMouseDown: ev]; + }); + + addMethod (@selector (rightMouseUp:), [] (id self, SEL, NSEvent* ev) + { + [[(NSOpenGLView*) self superview] rightMouseUp: ev]; + }); + + addMethod (@selector (acceptsFirstMouse:), [] (id, SEL, NSEvent*) -> BOOL + { + return YES; + }); + + addMethod (@selector (accessibilityHitTest:), [] (id self, SEL, NSPoint p) -> id + { + return [[(NSOpenGLView*) self superview] accessibilityHitTest: p]; + }); registerClass(); }