From add1b6ab3c91d408635b311127224dd4cc33f1ab Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 23 Sep 2022 14:33:43 +1000 Subject: Cleanup: spelling in comments --- source/blender/editors/interface/interface_widgets.c | 12 ++++++------ source/blender/editors/space_file/filelist.cc | 2 +- source/blender/editors/space_file/folder_history.cc | 14 +++++++++++--- 3 files changed, 18 insertions(+), 10 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 53b1967d668..842201894a3 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -197,16 +197,16 @@ static void color_mul_hsl_v3(uchar ch[3], float h_factor, float s_factor, float * \{ */ /** - * - in: roundbox codes for corner types and radius - * - return: array of `[size][2][x, y]` points, the edges of the roundbox, + UV coords + * - in: `roundbox` codes for corner types and radius + * - return: array of `[size][2][x, y]` points, the edges of the `roundbox`, + UV coords * - * - draw black box with alpha 0 on exact button boundbox - * - for every AA step: + * - Draw black box with alpha 0 on exact button bounding-box. + * - For every AA step: * - draw the inner part for a round filled box, with color blend codes or texture coords * - draw outline in outline color * - draw outer part, bottom half, extruded 1 pixel to bottom, for emboss shadow * - draw extra decorations - * - draw background color box with alpha 1 on exact button boundbox + * - Draw background color box with alpha 1 on exact button bounding-box. */ /* fill this struct with polygon info to draw AA'ed */ @@ -693,7 +693,7 @@ static void round_box__edges( { float vec[WIDGET_CURVE_RESOLU][2], veci[WIDGET_CURVE_RESOLU][2]; const float minx = rect->xmin, miny = rect->ymin, maxx = rect->xmax, maxy = rect->ymax; - const float minxi = minx + U.pixelsize; /* boundbox inner */ + const float minxi = minx + U.pixelsize; /* Bounding-box inner. */ const float maxxi = maxx - U.pixelsize; const float minyi = miny + U.pixelsize; const float maxyi = maxy - U.pixelsize; diff --git a/source/blender/editors/space_file/filelist.cc b/source/blender/editors/space_file/filelist.cc index 2b9b23620ee..daf04aa5f41 100644 --- a/source/blender/editors/space_file/filelist.cc +++ b/source/blender/editors/space_file/filelist.cc @@ -227,7 +227,7 @@ struct FileList { * because those are no more persistent * (only generated on demand, and freed as soon as possible). * Persistent part (mere list of paths + stat info) - * is kept as small as possible, and filebrowser-agnostic. + * is kept as small as possible, and file-browser agnostic. */ GHash *selection_state; diff --git a/source/blender/editors/space_file/folder_history.cc b/source/blender/editors/space_file/folder_history.cc index 9aa1d181584..3e410901347 100644 --- a/source/blender/editors/space_file/folder_history.cc +++ b/source/blender/editors/space_file/folder_history.cc @@ -23,7 +23,9 @@ #include "file_intern.h" -/* ----------------- FOLDERLIST (previous/next) -------------- */ +/* -------------------------------------------------------------------- */ +/** \name FOLDERLIST (previous/next) + * \{ */ typedef struct FolderList { struct FolderList *next, *prev; @@ -47,7 +49,7 @@ void folderlist_popdir(struct ListBase *folderlist, char *dir) BLI_strncpy(dir, prev_dir, FILE_MAXDIR); } } - /* delete the folder next or use setdir directly before PREVIOUS OP */ + /* Delete the folder next or use set-directory directly before PREVIOUS OP. */ } void folderlist_pushdir(ListBase *folderlist, const char *dir) @@ -129,7 +131,11 @@ static ListBase folderlist_duplicate(ListBase *folderlist) return folderlistn; } -/* ----------------- Folder-History (wraps/owns file list above) -------------- */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Folder-History (wraps/owns file list above) + * \{ */ static FileFolderHistory *folder_history_find(const SpaceFile *sfile, eFileBrowse_Mode browse_mode) { @@ -189,3 +195,5 @@ ListBase folder_history_list_duplicate(ListBase *listbase) return histories; } + +/** \} */ -- cgit v1.2.3