summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-11-24 15:06:28 +0000
committerMoonchild <moonchild@palemoon.org>2022-11-24 15:06:28 +0000
commit6efb1515201f9d2d055f717ef0ebe4a0f10e2bf2 (patch)
treeb3407ec2d374427d0607113dd326ce36101deed3 /image
parenteb87672d4cdd5a0030ff2a639b01068e89b99b87 (diff)
downloaduxp-6efb1515201f9d2d055f717ef0ebe4a0f10e2bf2.tar.gz
[no issue] fix whitespace.
Diffstat (limited to 'image')
-rw-r--r--image/decoders/nsJXLDecoder.cpp8
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));
}