From f051146ae64550b65a37bc1cb6f9c60583fa0123 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Mar 2021 14:39:39 +1100 Subject: Cleanup: clang-format --- intern/ghost/intern/GHOST_WindowCocoa.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 7998991dc8d..6a5a088d163 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -118,8 +118,8 @@ - (void)windowDidResize:(NSNotification *)notification { - //if (![[notification object] inLiveResize]) { - //Send event only once, at end of resize operation (when user has released mouse button) + // if (![[notification object] inLiveResize]) { + // Send event only once, at end of resize operation (when user has released mouse button) systemCocoa->handleWindowEvent(GHOST_kEventWindowSize, associatedWindow); //} /* Live resize, send event, gets handled in wm_window.c. @@ -137,7 +137,7 @@ - (BOOL)windowShouldClose:(id)sender; { - //Let Blender close the window rather than closing immediately + // Let Blender close the window rather than closing immediately systemCocoa->handleWindowEvent(GHOST_kEventWindowClose, associatedWindow); return false; } @@ -176,7 +176,7 @@ return (associatedWindow->isDialog() || !systemCocoa->hasDialogWindow()); } -//The drag'n'drop dragging destination methods +// The drag'n'drop dragging destination methods - (NSDragOperation)draggingEntered:(id)sender { NSPoint mouseLocation = [sender draggingLocation]; @@ -191,7 +191,7 @@ else return NSDragOperationNone; - associatedWindow->setAcceptDragOperation(TRUE); //Drag operation is accepted by default + associatedWindow->setAcceptDragOperation(TRUE); // Drag operation is accepted by default systemCocoa->handleDraggingEvent(GHOST_kEventDraggingEntered, m_draggedObjectType, associatedWindow, @@ -203,7 +203,7 @@ - (BOOL)wantsPeriodicDraggingUpdates { - return NO; //No need to overflow blender event queue. Events shall be sent only on changes + return NO; // No need to overflow blender event queue. Events shall be sent only on changes } - (NSDragOperation)draggingUpdated:(id)sender -- cgit v1.2.3