From 647b99c6d013f71b634ba7398d00215e4eb7d3f5 Mon Sep 17 00:00:00 2001 From: BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> Date: Fri, 28 Mar 2025 22:53:31 +0100 Subject: [PATCH] Image: Fix typo at `_set_color_at_ofs` with `FORMAT_RGB565` --- core/io/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/image.cpp b/core/io/image.cpp index cce9d98b2fb..d20648686b1 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -3331,7 +3331,7 @@ void Image::_set_color_at_ofs(uint8_t *ptr, uint32_t ofs, const Color &p_color) uint16_t rgba = 0; rgba = uint16_t(CLAMP(p_color.r * 31.0, 0, 31)); - rgba |= uint16_t(CLAMP(p_color.g * 63.0, 0, 33)) << 5; + rgba |= uint16_t(CLAMP(p_color.g * 63.0, 0, 63)) << 5; rgba |= uint16_t(CLAMP(p_color.b * 31.0, 0, 31)) << 11; ((uint16_t *)ptr)[ofs] = rgba;