diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-24 08:56:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-24 08:59:34 +0300 |
commit | 4b9ff3cd42be427e478743648e9951bf8c189a04 (patch) | |
tree | b0cb1462a8fdae38df4a0a1067349f3118d56a43 /source/blender/windowmanager/intern | |
parent | 2e99a74df9ecfa18c4081cdcc82227e2e24f14b1 (diff) |
Cleanup: comment blocks, trailing space in comments
Diffstat (limited to 'source/blender/windowmanager/intern')
7 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index 46e47ae95c4..6dd3e4186c4 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -153,7 +153,7 @@ static void window_manager_blend_read_data(BlendDataReader *reader, ID *id) if (win->workspace_hook != NULL) { /* We need to restore a pointer to this later when reading workspaces, * so store in global oldnew-map. - * Note that this is only needed for versioning of older .blend files now.. */ + * Note that this is only needed for versioning of older .blend files now. */ BLO_read_data_globmap_add(reader, hook, win->workspace_hook); /* Cleanup pointers to data outside of this data-block scope. */ win->workspace_hook->act_layout = NULL; diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c index 0050c834a56..905b0f7b128 100644 --- a/source/blender/windowmanager/intern/wm_event_query.c +++ b/source/blender/windowmanager/intern/wm_event_query.c @@ -218,7 +218,7 @@ bool WM_event_type_mask_test(const int event_type, const enum eEventType_Mask ma /** \name Event Motion Queries * \{ */ -/* for modal callbacks, check configuration for how to interpret exit with tweaks */ +/* for modal callbacks, check configuration for how to interpret exit with tweaks. */ bool WM_event_is_modal_tweak_exit(const wmEvent *event, int tweak_event) { /* if the release-confirm userpref setting is enabled, diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 750b4e5e60d..a0fd53685bc 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -3493,7 +3493,7 @@ void wm_event_do_handlers(bContext *C) } /* If press was handled, we don't want to do click. This way - * press in tool keymap can override click in editor keymap.*/ + * press in tool key-map can override click in editor key-map. */ if (ISMOUSE_BUTTON(event->type) && event->val == KM_PRESS && !wm_action_not_handled(action)) { win->event_queue_check_click = false; diff --git a/source/blender/windowmanager/intern/wm_operator_type.c b/source/blender/windowmanager/intern/wm_operator_type.c index 1f3574f9032..e17d5a9ae70 100644 --- a/source/blender/windowmanager/intern/wm_operator_type.c +++ b/source/blender/windowmanager/intern/wm_operator_type.c @@ -229,7 +229,7 @@ void wm_operatortype_free(void) void WM_operatortype_props_advanced_begin(wmOperatorType *ot) { if (ot_prop_basic_count == -1) { - /* Don't do anything if _begin was called before, but not _end */ + /* Don't do anything if _begin was called before, but not _end. */ ot_prop_basic_count = RNA_struct_count_properties(ot->srna); } } diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 32b0ca66a33..c80e4b26096 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2885,7 +2885,7 @@ static int radial_control_modal(bContext *C, wmOperator *op, const wmEvent *even } } - /* calculate new value and apply snapping */ + /* Calculate new value and apply snapping. */ switch (rc->subtype) { case PROP_NONE: case PROP_DISTANCE: diff --git a/source/blender/windowmanager/intern/wm_platform_support.c b/source/blender/windowmanager/intern/wm_platform_support.c index 45618e9d6d3..54fc454ee65 100644 --- a/source/blender/windowmanager/intern/wm_platform_support.c +++ b/source/blender/windowmanager/intern/wm_platform_support.c @@ -123,7 +123,7 @@ bool WM_platform_support_perform_checks() const char *platform_key = GPU_platform_support_level_key(); /* Check if previous check matches the current check. Don't update the approval when running in - * `background`. this could have been triggered by installing add-ons via installers. */ + * `background`. this could have been triggered by installing add-ons via installers. */ if (support_level != GPU_SUPPORT_LEVEL_UNSUPPORTED && !G.factory_startup && wm_platform_support_check_approval(platform_key, !G.background)) { /* If it matches the user has confirmed and wishes to use it. */ diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index ae5a2c81582..22fbd277893 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -188,7 +188,7 @@ static void wm_ghostwindow_destroy(wmWindowManager *wm, wmWindow *win) GHOST_ActivateWindowDrawingContext(win->ghostwin); GPU_context_active_set(win->gpuctx); - /* Delete local gpu context. */ + /* Delete local GPU context. */ GPU_context_discard(win->gpuctx); GHOST_DisposeWindow(g_system, win->ghostwin); @@ -440,8 +440,8 @@ void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win) void wm_window_title(wmWindowManager *wm, wmWindow *win) { if (WM_window_is_temp_screen(win)) { - /* nothing to do for 'temp' windows, - * because WM_window_open always sets window title */ + /* Nothing to do for 'temp' windows, + * because #WM_window_open always sets window title. */ } else if (win->ghostwin) { /* this is set to 1 if you don't have startup.blend open */ |