spelling: palettized

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 15:25:55 -05:00
parent bd132b4003
commit 3343c3a8b6
2 changed files with 7 additions and 7 deletions

View file

@ -127,13 +127,13 @@ T_STATIC GColor get_bitmap_color(GBitmap *bmp, int x, int y) {
0, // y = 0 when using data_row
bmp->row_size_bytes,
src_bpp);
// Default color to be the raw color index - update only if palletized
// Default color to be the raw color index - update only if palettized
GColor src_color = (GColor){.argb = cindex};
bool palletized = ((format == GBitmapFormat1BitPalette) ||
bool palettized = ((format == GBitmapFormat1BitPalette) ||
(format == GBitmapFormat2BitPalette) ||
(format == GBitmapFormat4BitPalette));
if (palletized) {
// Look up color in palette if palletized
if (palettized) {
// Look up color in palette if palettized
const GColor *palette = bmp->palette;
src_color = palette[cindex];
}