Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2022-01-31 10:51:33 +11:00
parent 012e41fc8b
commit ac3324f197
8 changed files with 13 additions and 13 deletions

View File

@ -39,8 +39,8 @@
* second intern/ module with MEM_ prefix, for use in c++.
*
* \subsection memdependencies Dependencies
* - stdlib
* - stdio
* - `stdlib`
* - `stdio`
*
* \subsection memdocs API Documentation
* See \ref MEM_guardedalloc.h

View File

@ -23,8 +23,8 @@
* image that are changed. These areas are organized in chunks. Changes that happen over time are
* organized in changesets.
*
* A common usecase is to update GPUTexture for drawing where only that part is uploaded that only
* changed.
* A common use case is to update #GPUTexture for drawing where only that part is uploaded that
* only changed.
*/
#pragma once

View File

@ -23,8 +23,8 @@
* image that are changed. These areas are organized in chunks. Changes that happen over time are
* organized in changesets.
*
* A common usecase is to update GPUTexture for drawing where only that part is uploaded that only
* changed.
* A common use case is to update #GPUTexture for drawing where only that part is uploaded that
* only changed.
*
* Usage:
*

View File

@ -70,7 +70,7 @@ class ImagePartialUpdateTest : public testing::Test {
IMB_init();
bmain = BKE_main_new();
/* Creating an image generates a mem-leak during tests. */
/* Creating an image generates a memory-leak during tests. */
image = create_test_image(1024, 1024);
image_tile = BKE_image_get_tile(image, 0);
image_buffer = BKE_image_acquire_ibuf(image, nullptr, nullptr);

View File

@ -706,9 +706,9 @@ void BLI_ewa_filter(const int width,
}
}
/* d should hopefully never be zero anymore */
/* `d` should hopefully never be zero anymore. */
d = 1.0f / d;
mul_v3_fl(result, d);
/* clipping can be ignored if alpha used, texr->trgba[3] already includes filtered edge */
/* Clipping can be ignored if alpha used, `texr->trgba[3]` already includes filtered edge. */
result[3] = use_alpha ? result[3] * d : 1.0f;
}

View File

@ -149,7 +149,7 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
IMAGE_InstanceData &instance_data) const
{
while (iterator.get_next_change() == ePartialUpdateIterResult::ChangeAvailable) {
/* Quick exit when tile_buffer isn't availble. */
/* Quick exit when tile_buffer isn't available. */
if (iterator.tile_data.tile_buffer == nullptr) {
continue;
}

View File

@ -48,9 +48,9 @@ struct TextureInfo {
rctf uv_bounds;
/**
* \brief Batch to draw the associated texton the screen.
* \brief Batch to draw the associated text on the screen.
*
* contans a VBO with `pos` and 'uv'.
* Contains a VBO with `pos` and `uv`.
* `pos` (2xF32) is relative to the origin of the space.
* `uv` (2xF32) reflect the uv bounds.
*/

View File

@ -103,7 +103,7 @@ void RE_point_density_fix_linking(void);
typedef struct TexResult {
float tin;
float trgba[4];
/* Is acually a bool true->use alpha, false->set alpha to 1.0. */
/* Is actually a boolean: When true -> use alpha, false -> set alpha to 1.0. */
int talpha;
float *nor;
} TexResult;