diff options
author | Moonchild <moonchild@palemoon.org> | 2022-11-24 15:06:28 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-11-24 15:06:28 +0000 |
commit | 6efb1515201f9d2d055f717ef0ebe4a0f10e2bf2 (patch) | |
tree | b3407ec2d374427d0607113dd326ce36101deed3 /image/decoders | |
parent | eb87672d4cdd5a0030ff2a639b01068e89b99b87 (diff) | |
download | uxp-6efb1515201f9d2d055f717ef0ebe4a0f10e2bf2.tar.gz |
[no issue] fix whitespace.
Diffstat (limited to 'image/decoders')
-rw-r--r-- | image/decoders/nsJXLDecoder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/image/decoders/nsJXLDecoder.cpp b/image/decoders/nsJXLDecoder.cpp index 7c0a743c6a..fa4f6e77de 100644 --- a/image/decoders/nsJXLDecoder.cpp +++ b/image/decoders/nsJXLDecoder.cpp @@ -141,10 +141,10 @@ nsJXLDecoder::ReadJXLData(const char* aData, size_t aLength) Nothing(), SurfacePipeFlags()); for (uint8_t* rowPtr = mOutBuffer.begin(); rowPtr < mOutBuffer.end(); rowPtr += mInfo.xsize * 4) { - // FIXME: Quick and dirty BGRA to RGBA conversion.
- // We currently have a channel ordering mis-match here.
- for (uint8_t* pixPtr = rowPtr; pixPtr < rowPtr + mInfo.xsize * 4; pixPtr+=4){
- std::swap(pixPtr[0], pixPtr[2]);
+ // FIXME: Quick and dirty BGRA to RGBA conversion. + // We currently have a channel ordering mis-match here. + for (uint8_t* pixPtr = rowPtr; pixPtr < rowPtr + mInfo.xsize * 4; pixPtr+=4){ + std::swap(pixPtr[0], pixPtr[2]); } pipe->WriteBuffer(reinterpret_cast<uint32_t*>(rowPtr)); } |