A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

imageviewer: jpeg: Fix grayscsale mode with no dithering show black screen

Change-Id: Ib29e3577c59db8e98db1dd5b8e28874a4fbef20f

+7 -1
+7 -1
apps/plugins/imageviewer/jpeg/yuv2rgb.c
··· 114 114 { 115 115 int r, g, b; 116 116 117 - g = clamp_component(pixel->g); 117 + g = pixel->g; 118 + 118 119 r = component_to_lcd(g, LCD_RED_BITS, NODITHER_DELTA); 120 + r = clamp_component_bits(r, LCD_RED_BITS); 121 + 119 122 b = component_to_lcd(g, LCD_BLUE_BITS, NODITHER_DELTA); 123 + b = clamp_component_bits(b, LCD_BLUE_BITS); 124 + 120 125 g = component_to_lcd(g, LCD_GREEN_BITS, NODITHER_DELTA); 126 + g = clamp_component_bits(g, LCD_GREEN_BITS); 121 127 122 128 return FB_RGBPACK_LCD(r, g, b); 123 129 }