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-06-23 05:05:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-23 06:54:12 +0300
commit5cc8e7ab53cb20a64b8c14268fe2dba2396b4247 (patch)
tree4a33d52711c57a9ed9656898489b44ff0096a222 /source/blender/imbuf
parent2c916c97ac744f5ef6ba35a6f7db68e96c4fbabc (diff)
Cleanup: reformat trailing comments that caused line wrapping
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/dds/ColorBlock.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/dds/ColorBlock.cpp b/source/blender/imbuf/intern/dds/ColorBlock.cpp
index a05c7e2a70d..1a67975b5f0 100644
--- a/source/blender/imbuf/intern/dds/ColorBlock.cpp
+++ b/source/blender/imbuf/intern/dds/ColorBlock.cpp
@@ -113,9 +113,8 @@ void ColorBlock::init(uint w, uint h, const float *data, uint x, uint y)
const uint idx = ((y + by) * w + x + bx);
Color32 &c = color(e, i);
- c.r = uint8(255 * CLAMP(data[idx + 0 * srcPlane],
- 0.0f,
- 1.0f)); /* @@ Is this the right way to quantize floats to bytes? */
+ /* @@ Is this the right way to quantize floats to bytes? */
+ c.r = uint8(255 * CLAMP(data[idx + 0 * srcPlane], 0.0f, 1.0f));
c.g = uint8(255 * CLAMP(data[idx + 1 * srcPlane], 0.0f, 1.0f));
c.b = uint8(255 * CLAMP(data[idx + 2 * srcPlane], 0.0f, 1.0f));
c.a = uint8(255 * CLAMP(data[idx + 3 * srcPlane], 0.0f, 1.0f));