Cleanup: spelling in comments (make check_spelling_*)

Also replace term "playhead" with "current-frame".
This commit is contained in:
Campbell Barton
2025-05-15 10:13:23 +10:00
parent 351fbff95b
commit 3ec7748485
8 changed files with 15 additions and 13 deletions

View File

@@ -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
*/

View File

@@ -1004,7 +1004,7 @@ static void add_corner_to_edge(const Span<int> corner_edges,
}
else if (const EdgeOneCorner *info_one_edge = std::get_if<EdgeOneCorner>(&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. */

View File

@@ -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. */

View File

@@ -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. */

View File

@@ -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,

View File

@@ -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.
*/

View File

@@ -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.
*/

View File

@@ -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",