summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-29 22:23:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-29 22:23:52 +0200
commit3d4afe7614bf8ff4c6fe141d1dcd83688a7ac8cd (patch)
treeb27345e76b10d2cd7c4381a70385c21d6310405a /Userland/Libraries/LibGfx
parent7ae7170d6140f7cad730f05f84b53437058b82f4 (diff)
downloadserenity-3d4afe7614bf8ff4c6fe141d1dcd83688a7ac8cd.zip
Everywhere: "indexes" => "indices"
I've wasted a silly amount of time in the past fretting over which of these words to use. Let's just choose one and use it everywhere. :^)
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/PNGLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/PNGLoader.cpp b/Userland/Libraries/LibGfx/PNGLoader.cpp
index 28693cac94..2e866ffb8b 100644
--- a/Userland/Libraries/LibGfx/PNGLoader.cpp
+++ b/Userland/Libraries/LibGfx/PNGLoader.cpp
@@ -430,10 +430,10 @@ NEVER_INLINE FLATTEN static bool unfilter(PNGLoadingContext& context)
auto pixels_per_byte = 8 / context.bit_depth;
auto mask = (1 << context.bit_depth) - 1;
for (int y = 0; y < context.height; ++y) {
- auto* palette_indexes = context.scanlines[y].data.data();
+ auto* palette_indices = context.scanlines[y].data.data();
for (int i = 0; i < context.width; ++i) {
auto bit_offset = (8 - context.bit_depth) - (context.bit_depth * (i % pixels_per_byte));
- auto palette_index = (palette_indexes[i / pixels_per_byte] >> bit_offset) & mask;
+ auto palette_index = (palette_indices[i / pixels_per_byte] >> bit_offset) & mask;
auto& pixel = (Pixel&)context.bitmap->scanline(y)[i];
if ((size_t)palette_index >= context.palette_data.size())
return false;