From 4d6fbfbd91943b95ec6f9a976a78cd7a1d259ef2 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 3 Dec 2021 22:59:54 -0500 Subject: [PATCH] it's a shorter name :3 --- src/image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/image.c b/src/image.c index 22ab06f..11f647b 100644 --- a/src/image.c +++ b/src/image.c @@ -94,7 +94,7 @@ static uint8_t rgb_to_luma(uint8_t r, uint8_t g, uint8_t b) { + (CAMMY_IMAGE_Y_COEFFICIENT_B * (float)b)); } -static uint8_t rgb_to_tile_2bpp(uint8_t r, uint8_t g, uint8_t b, size_t x, size_t y) { +static uint8_t rgb_to_2bpp(uint8_t r, uint8_t g, uint8_t b, size_t x, size_t y) { uint8_t gray = rgb_to_luma(r, g, b); uint32_t slot = bayer_matrix[gray]; @@ -589,8 +589,8 @@ static void copy_bitmap_to_tile(cammy_image *dest, to->x + x, to->y + y, dest->width, - rgb_to_tile_2bpp(r, g, b, to->x + x, - to->y + y)); + rgb_to_2bpp(r, g, b, to->x + x, + to->y + y)); } } }