Cleanup: spelling

This commit is contained in:
Campbell Barton 2020-11-16 16:48:41 +11:00
parent 4eac03d821
commit a3a6d6a670
10 changed files with 28 additions and 27 deletions

View File

@ -23,7 +23,7 @@
* \ingroup GHOST
*/
#include <X11/XKBlib.h> /* allow detectable autorepeate */
#include <X11/XKBlib.h> /* Allow detectable auto-repeate. */
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
@ -130,10 +130,9 @@ GHOST_SystemX11::GHOST_SystemX11() : GHOST_System(), m_xkb_descr(NULL), m_start_
#endif
#if defined(WITH_X11_XINPUT) && defined(X_HAVE_UTF8_STRING)
/* note -- don't open connection to XIM server here, because the locale
* has to be set before opening the connection but setlocale() has not
* been called yet. the connection will be opened after entering
* the event loop. */
/* NOTE: Don't open connection to XIM server here, because the locale has to be
* set before opening the connection but `setlocale()` has not been called yet.
* the connection will be opened after entering the event loop. */
m_xim = NULL;
#endif
@ -189,7 +188,7 @@ GHOST_SystemX11::GHOST_SystemX11() : GHOST_System(), m_xkb_descr(NULL), m_start_
/* Taking care not to overflow the tv.tv_sec * 1000 */
m_start_time = GHOST_TUns64(tv.tv_sec) * 1000 + tv.tv_usec / 1000;
/* use detectable autorepeate, mac and windows also do this */
/* Use detectable auto-repeate, mac and windows also do this. */
int use_xkb;
int xkb_opcode, xkb_event, xkb_error;
int xkb_major = XkbMajorVersion, xkb_minor = XkbMinorVersion;

View File

@ -24,7 +24,7 @@
#pragma once
#include <X11/XKBlib.h> /* allow detectable autorepeate */
#include <X11/XKBlib.h> /* Allow detectable auto-repeate. */
#include <X11/Xlib.h>
#include "../GHOST_Types.h"

View File

@ -560,7 +560,7 @@ void BKE_gpencil_convert_curve(Main *bmain,
/** \} */
/* -------------------------------------------------------------------- */
/** \name Editcurve kernel functions
/** \name Edit-Curve Kernel Functions
* \{ */
static bGPDcurve *gpencil_stroke_editcurve_generate_edgecases(bGPDstroke *gps,

View File

@ -3321,7 +3321,7 @@ static void softbody_reset(Object *ob, SoftBody *sb, float (*vertexCos)[3], int
bp->vec[0] = bp->vec[1] = bp->vec[2] = 0.0f;
/* the bp->prev*'s are for rolling back from a canceled try to propagate in time
* adaptive step size algo in a nutshell:
* adaptive step size algorithm in a nutshell:
* 1. set scheduled time step to new dtime
* 2. try to advance the scheduled time step, being optimistic execute it
* 3. check for success

View File

@ -312,19 +312,19 @@ struct MemFile *ED_undosys_stack_memfile_get_active(UndoStack *ustack)
}
/**
* If the last undo step is a memfile one, find the first memchunk matching given ID (using its
* seesion uuid), and tag it as 'changed in the future'.
* If the last undo step is a memfile one, find the first #MemFileChunk matching given ID
* (using its session UUID), and tag it as "changed in the future".
*
* Since non-memfile undos cannot automatically set this flag in the previous step as done with
* memfile ones, this has to be called manually by relevant undo code.
*
* \note Only current known case for this is undoing a switch from Pbject to Sculpt mode (see
* \note Only current known case for this is undoing a switch from Object to Sculpt mode (see
* T82388).
*
* \note Calling this ID by ID is not optimal, as it will loop over all memchunks until it find
* expected one. If this becomes an issue we'll have to add a mapping from session uuid to first
* memchunk in #MemFile itself (currently we only do that in #MemFileWriteData when writing a new
* step).
* \note Calling this ID by ID is not optimal, as it will loop over all #MemFile.chunks until it
* finds the expected one. If this becomes an issue we'll have to add a mapping from session UUID
* to first #MemFileChunk in #MemFile itself
* (currently we only do that in #MemFileWriteData when writing a new step).
*/
void ED_undosys_stack_memfile_id_changed_tag(UndoStack *ustack, ID *id)
{

View File

@ -61,9 +61,9 @@ typedef struct CurveMap {
/** Display and evaluate table. */
CurveMapPoint *table;
/** For RGB curves, premulled table. */
/** For RGB curves, pre-multiplied table. */
CurveMapPoint *premultable;
/** For RGB curves, premulled extrapolation vector. */
/** For RGB curves, pre-multiplied extrapolation vector. */
float premul_ext_in[2];
float premul_ext_out[2];
} CurveMap;

View File

@ -376,8 +376,8 @@ void RE_engine_end_result(
pa->status = (!cancel && merge_results) ? PART_STATUS_MERGED : PART_STATUS_RENDERED;
}
else if (re->result->do_exr_tile) {
/* if written result does not match any tile and we are using save
* buffers, we are going to get openexr save errors */
/* If written result does not match any tile and we are using save
* buffers, we are going to get OpenEXR save errors. */
fprintf(stderr, "RenderEngine.end_result: dimensions do not match any OpenEXR tile.\n");
}
}

View File

@ -737,8 +737,10 @@ static int order_render_passes(const void *a, const void *b)
return (rpa->view_id < rpb->view_id);
}
/* From imbuf, if a handle was returned and
* it's not a singlelayer multiview we convert this to render result. */
/**
* From imbuf, if a handle was returned and
* it's not a single-layer multi-view we convert this to render result.
*/
RenderResult *render_result_new_from_exr(
void *exrhandle, const char *colorspace, bool predivide, int rectx, int recty)
{

View File

@ -327,7 +327,7 @@ int imagewrap(Tex *tex,
texres->ta = 1.0f - texres->ta;
}
/* de-premul, this is being premulled in shade_input_do_shade()
/* de-premul, this is being pre-multiplied in shade_input_do_shade()
* do not de-premul for generated alpha, it is already in straight */
if (texres->ta != 1.0f && texres->ta > 1e-4f && !(tex->imaflag & TEX_CALCALPHA)) {
fx = 1.0f / texres->ta;
@ -1441,7 +1441,7 @@ static int imagewraposa_aniso(Tex *tex,
texres->nor[2] = 2.0f * (texres->tb - 0.5f);
}
/* de-premul, this is being premulled in shade_input_do_shade()
/* de-premul, this is being pre-multiplied in shade_input_do_shade()
* TXF: this currently does not (yet?) work properly, destroys edge AA in clip/checker mode,
* so for now commented out also disabled in imagewraposa()
* to be able to compare results with blender's default texture filtering */
@ -1970,7 +1970,7 @@ int imagewraposa(Tex *tex,
texres->nor[2] = 2.0f * (texres->tb - 0.5f);
}
/* de-premul, this is being premulled in shade_input_do_shade() */
/* de-premul, this is being pre-multiplied in shade_input_do_shade() */
/* do not de-premul for generated alpha, it is already in straight */
if (texres->ta != 1.0f && texres->ta > 1e-4f && !(tex->imaflag & TEX_CALCALPHA)) {
mul_v3_fl(&texres->tr, 1.0f / texres->ta);

View File

@ -54,7 +54,7 @@
static void seq_free_animdata(Scene *scene, Sequence *seq);
/* -------------------------------------------------------------------- */
/** \name Alloc / free functions
/** \name Allocate / Free Functions
* \{ */
static Strip *seq_strip_alloc(int type)
@ -304,7 +304,7 @@ static void seq_new_fix_links_recursive(Sequence *seq)
/** \} */
/* -------------------------------------------------------------------- */
/** \name Duplicate functions
/** \name Duplicate Functions
* \{ */
static Sequence *seq_dupli(const Scene *scene_src,
Scene *scene_dst,