From 3ec774848599d9f7e4ba38d0b65942e23fcdb457 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 May 2025 10:13:23 +1000 Subject: [PATCH] Cleanup: spelling in comments (make check_spelling_*) Also replace term "playhead" with "current-frame". --- intern/ghost/intern/GHOST_ContextVK.cc | 6 +++--- source/blender/blenkernel/intern/mesh_normals.cc | 2 +- source/blender/editors/space_node/node_draw.cc | 6 +++--- source/blender/gpu/GPU_format.hh | 2 +- source/blender/gpu/GPU_texture.hh | 2 +- source/blender/sequencer/intern/cache/final_image_cache.hh | 4 ++-- source/blender/sequencer/intern/cache/source_image_cache.hh | 4 ++-- tools/check_source/check_spelling_config.py | 2 ++ 8 files changed, 15 insertions(+), 13 deletions(-) diff --git a/intern/ghost/intern/GHOST_ContextVK.cc b/intern/ghost/intern/GHOST_ContextVK.cc index 02ac81e9a38..2a5eba068cf 100644 --- a/intern/ghost/intern/GHOST_ContextVK.cc +++ b/intern/ghost/intern/GHOST_ContextVK.cc @@ -927,9 +927,9 @@ GHOST_TSuccess GHOST_ContextVK::recreateSwapchain() } } - /* Windows/NVIDIA doesn't support creating a surface image with resolution 0,0. Minimuzed windows - * have an extent of 0,0. Although it fits in the specs returned by - * vkGetPhysicalDeviceSurfaceCapabilitiesKHR. + /* Windows/NVIDIA doesn't support creating a surface image with resolution 0,0. + * Minimized windows have an extent of 0,0. Although it fits in the specs returned by + * #vkGetPhysicalDeviceSurfaceCapabilitiesKHR. * * Ref #138032 */ diff --git a/source/blender/blenkernel/intern/mesh_normals.cc b/source/blender/blenkernel/intern/mesh_normals.cc index 67e24af26f0..4e3b4693097 100644 --- a/source/blender/blenkernel/intern/mesh_normals.cc +++ b/source/blender/blenkernel/intern/mesh_normals.cc @@ -1004,7 +1004,7 @@ static void add_corner_to_edge(const Span corner_edges, } else if (const EdgeOneCorner *info_one_edge = std::get_if(&info)) { /* If the edge ends up being used by faces, we still have to check if the winding direction - * changes. Though it's an undesireable situation for the mesh to be in, we shouldn't propogate + * changes. Though it's an undesirable situation for the mesh to be in, we shouldn't propagate * smooth normals across edges facing opposite directions. Breaking the flow on these winding * direction changes also simplifies the fan traversal later on; without it the we couldn't * traverse by just continuing to use the next/previous corner. */ diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 91c73de844e..c0dc710dd88 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -4077,15 +4077,15 @@ static FrameNodeLayout frame_node_layout(const bNode &frame_node) frame_layout.has_label = frame_node.label[0] != '\0'; /* This is not the actual height of the letters in the label, but an approximation that includes - * some of the whitespace above and below the actual letters. */ + * some of the white-space above and below the actual letters. */ frame_layout.label_height = frame_data->label_size * UI_SCALE_FAC; /* The side and bottom margins are 50% bigger than the widget unit */ frame_layout.margin = 1.5f * U.widget_unit; if (frame_layout.has_label) { - /* The label takes up 1.5 times the label height plus .2 times the margin. - * These coefficients are selected to provide good layout and spacing for descenders. */ + /* The label takes up 1.5 times the label height plus 0.2 times the margin. + * These coefficients are selected to provide good layout and spacing for the descenders. */ float room_for_label = 1.5f * frame_layout.label_height + 0.2f * frame_layout.margin; /* Make top margin bigger, if needed for the label, but never smaller than the side margins. */ diff --git a/source/blender/gpu/GPU_format.hh b/source/blender/gpu/GPU_format.hh index fc16ee7b635..1b50178f7c7 100644 --- a/source/blender/gpu/GPU_format.hh +++ b/source/blender/gpu/GPU_format.hh @@ -237,7 +237,7 @@ enum class DataFormat : uint8_t { /* -------------------------------------------------------------------- */ /** \name Utilities * - * Allow querying informations about the format enum values. + * Allow querying information about the format enum values. * \{ */ /* NOTE: Compressed format bytesize are rounded up as their actual value is fractional. */ diff --git a/source/blender/gpu/GPU_texture.hh b/source/blender/gpu/GPU_texture.hh index 18f51c64cfd..12b923a1439 100644 --- a/source/blender/gpu/GPU_texture.hh +++ b/source/blender/gpu/GPU_texture.hh @@ -131,7 +131,7 @@ inline constexpr DataFormat to_data_format(TextureFormat format) } /** - * Formats compatible with framebuffer attachments. + * Formats compatible with frame-buffer attachments. */ enum class TextureTargetFormat : uint8_t { Invalid = 0, diff --git a/source/blender/sequencer/intern/cache/final_image_cache.hh b/source/blender/sequencer/intern/cache/final_image_cache.hh index c576fe3876f..d673a40fd1b 100644 --- a/source/blender/sequencer/intern/cache/final_image_cache.hh +++ b/source/blender/sequencer/intern/cache/final_image_cache.hh @@ -8,8 +8,8 @@ * Cache of final rendered frames. * - Keyed by (timeline frame, view_id). * - When full, cache eviction policy is to remove frames furthest - * from the current playhead, biasing towards removal of - * frames behind the playhead. + * from the current-frame, biasing towards removal of + * frames behind the current-frame. * - Invalidated fairly often while editing, basically whenever any * strip overlapping that frame changes. */ diff --git a/source/blender/sequencer/intern/cache/source_image_cache.hh b/source/blender/sequencer/intern/cache/source_image_cache.hh index 6a2318b1e73..0d43cda18a4 100644 --- a/source/blender/sequencer/intern/cache/source_image_cache.hh +++ b/source/blender/sequencer/intern/cache/source_image_cache.hh @@ -11,8 +11,8 @@ * any other strips (images, movies, no-input effect strips like * Text and Color). * - When full, cache eviction policy is to remove frames furthest - * from the current playhead, biasing towards removal of - * frames behind the playhead. + * from the current-frame, biasing towards removal of + * frames behind the current-frame. * - Invalidated fairly rarely, since the cached items only change * when the source content changes. */ diff --git a/tools/check_source/check_spelling_config.py b/tools/check_source/check_spelling_config.py index 7d347d1c399..b865c82eb7c 100644 --- a/tools/check_source/check_spelling_config.py +++ b/tools/check_source/check_spelling_config.py @@ -139,6 +139,7 @@ dict_custom = { "dereferencing", "derivates", "desaturate", + "descenders", "designator", "despeckle", "despeckled", @@ -393,6 +394,7 @@ dict_custom = { "stepsize", "stepwise", "stitchable", + "strobing", "subclass", "subclasses", "subclassing",