Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2024-09-04 19:32:41 +10:00
parent 842f87d1de
commit ad67ad63fe
7 changed files with 13 additions and 13 deletions

View File

@@ -77,7 +77,7 @@ struct AZone {
int type;
union {
/** Region-azone, which of the edges (only for #AZONE_REGION). */
/** Region-AZone, which of the edges (only for #AZONE_REGION). */
AZEdge edge;
AZScrollDirection direction;
};

View File

@@ -382,7 +382,7 @@ static void ui_view2d_curRect_validate_resize(View2D *v2d, bool resize)
rctf *cur, *tot;
/* use mask as size of region that View2D resides in, as it takes into account
* scroll-bars already - keep in sync with zoomx/zoomy in #view_zoomstep_apply_ex! */
* scroll-bars already - keep in sync with `zoomx/zoomy` in #view_zoomstep_apply_ex! */
winx = float(BLI_rcti_size_x(&v2d->mask) + 1);
winy = float(BLI_rcti_size_y(&v2d->mask) + 1);
@@ -404,7 +404,7 @@ static void ui_view2d_curRect_validate_resize(View2D *v2d, bool resize)
*/
totwidth = BLI_rctf_size_x(tot);
totheight = BLI_rctf_size_y(tot);
/* keep in sync with zoomx/zoomy in view_zoomstep_apply_ex! */
/* Keep in sync with `zoomx/zoomy` in #view_zoomstep_apply_ex! */
curwidth = width = BLI_rctf_size_x(cur);
curheight = height = BLI_rctf_size_y(cur);

View File

@@ -1956,7 +1956,7 @@ static void paint_cursor_cursor_draw_3d_view_brush_cursor_active(PaintCursorCont
GPU_matrix_push();
GPU_matrix_mul(pcontext->vc.obact->object_to_world().ptr());
/* Draw the special active cursors different brushe types may have. */
/* Draw the special active cursors different brush types may have. */
if (brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_GRAB) {
sculpt_geometry_preview_lines_draw(

View File

@@ -35,7 +35,7 @@ class GeomCleaner {
* iIndices
* The array containing the vertex indices
* (used to refer to the vertex coordinates in an indexed face).
* Each element is an unsignedeger multiple of 3.
* Each element is a uint multiple of 3.
* iISize
* The size of iIndices array
* oVertices
@@ -64,7 +64,7 @@ class GeomCleaner {
* iIndices
* The array containing the vertex indices
* (used to refer to the vertex coordinates in an indexed face).
* Each element is an unsignedeger multiple of 3.
* Each element is a uint multiple of 3.
* iISize
* The size of iIndices array
* oVertices
@@ -92,7 +92,7 @@ class GeomCleaner {
* iIndices
* The array containing the vertex indices
* (used to refer to the vertex coordinates in an indexed face).
* Each element is an unsignedeger multiple of 3.
* Each element is a uint multiple of 3.
* iISize
* The size of iIndices array
* oVertices
@@ -121,7 +121,7 @@ class GeomCleaner {
* iIndices
* The array containing the vertex indices
* (used to refer to the vertex coordinates in an indexed face).
* Each element is an unsignedeger multiple of 3.
* Each element is a uint multiple of 3.
* iISize
* The size of iIndices array
* oVertices

View File

@@ -366,7 +366,7 @@ class StrokeVertex : public CurvePoint {
return getPoint2D();
}
/** Returns the ith 2D point coordinate (i=0 or 1). */
/** Returns the i-th 2D point coordinate (i=0 or 1). */
inline real operator[](const int i) const
{
return _Point2d[i];
@@ -429,7 +429,7 @@ class StrokeVertex : public CurvePoint {
_Point2d[1] = p[1];
}
/** Returns a reference to the ith 2D point coordinate (i=0 or 1) */
/** Returns a reference to the i-th 2D point coordinate (i=0 or 1). */
inline real &operator[](const int i)
{
return _Point2d[i];

View File

@@ -1860,7 +1860,7 @@ class SShape {
return _BBox;
}
/** Returns the ith material of the shape. */
/** Returns the i-th material of the shape. */
inline const FrsMaterial &frs_material(uint i) const
{
return _FrsMaterials[i];

View File

@@ -622,9 +622,9 @@ struct wmGesture {
/**
* customdata
* - for border is a #rcti.
* - for circle is #rcti, (xmin, ymin) is center, xmax radius.
* - for circle is #rcti, (`xmin`, `ymin`) is center, `xmax` radius.
* - for lasso is short array.
* - for straight line is a #rcti: (xmin, ymin) is start, (xmax, ymax) is end.
* - for straight line is a #rcti: (`xmin`, `ymin`) is start, (`xmax`, `ymax`) is end.
*/
void *customdata;