Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-16 16:46:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-16 16:46:28 +0300
commit7db3746033437783411b0eb4b77f0804c25e2614 (patch)
tree459ced3a8aa900878f837d9dba212ecc654ca255 /source/blender/editors/space_sequencer
parent394a0b0da5b899944d33a38c9ff01e03dc370f2a (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c15
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c2
2 files changed, 8 insertions, 9 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 888e232ce45..b3c39e2fa6f 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -329,10 +329,10 @@ static void draw_seq_waveform_overlay(View2D *v2d,
{
if (seq->sound && ((sseq->flag & SEQ_ALL_WAVEFORMS) || (seq->flag & SEQ_AUDIO_DRAW_WAVEFORM))) {
/* Make sure that the start drawing position is aligned to the pixels on the screen to avoid
- * flickering whem moving around the strip.
+ * flickering when moving around the strip.
* To do this we figure out the fractional offset in pixel space by checking where the
* window starts.
- * We then append this pixel offset to our strip start coordiate to ensure we are aligned to
+ * We then append this pixel offset to our strip start coordinate to ensure we are aligned to
* the screen pixel grid. */
float pixel_frac = v2d->cur.xmin / frames_per_pixel - floor(v2d->cur.xmin / frames_per_pixel);
float x1_adj = clamp_frame_coord_to_pixel(x1, pixel_frac, frames_per_pixel);
@@ -386,7 +386,7 @@ static void draw_seq_waveform_overlay(View2D *v2d,
/* The y coordinate for the middle of the strip. */
float y_mid = (y1 + y2) / 2.0f;
- /* The lenght from the middle of the strip to the top/bottom. */
+ /* The length from the middle of the strip to the top/bottom. */
float y_scale = (y2 - y1) / 2.0f;
float volume = seq->volume;
@@ -403,9 +403,9 @@ static void draw_seq_waveform_overlay(View2D *v2d,
if (strip_start_offset != 0) {
/* If start offset is not zero, we need to make sure that we pick the same start sample as if
- * we simply scrolled the start of the strip offscreen. Otherwise we will get flickering when
- * changing start offset as the pixel alignment will not be the same for the drawn samples.
- */
+ * we simply scrolled the start of the strip off-screen. Otherwise we will get flickering
+ * when changing start offset as the pixel alignment will not be the same for the drawn
+ * samples. */
strip_start_offset = clamp_frame_coord_to_pixel(
x1 - strip_start_offset, pixel_frac, frames_per_pixel);
start_sample = fabsf(strip_start_offset - x1_adj) * samples_per_frame;
@@ -470,8 +470,7 @@ static void draw_seq_waveform_overlay(View2D *v2d,
if (was_line_strip != -1 && is_line_strip != was_line_strip) {
/* If the previously added strip type isn't the same as the current one,
- * add transision areas so they transistion smoothly between each other.
- */
+ * add transition areas so they transition smoothly between each other. */
if (is_line_strip) {
/* This will be a line strip, end the tri strip. */
tri_strip_iter->pos[0] = x1_offset + i * frames_per_pixel;
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 4b26469aad3..afad8999e88 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -2943,7 +2943,7 @@ static int seq_cmp_time_startdisp_channel(const void *a, const void *b)
int seq_a_start = SEQ_transform_get_left_handle_frame(seq_a);
int seq_b_start = SEQ_transform_get_left_handle_frame(seq_b);
- /** If strips have the same start frame favor the one with a higher channel. **/
+ /* If strips have the same start frame favor the one with a higher channel. */
if (seq_a_start == seq_b_start) {
return seq_a->machine > seq_b->machine;
}