mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-01 17:53:07 +02:00
set dithering to rgb555 instead of rgb565 as it seems the screen only supports rgb555
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
@@ -398,7 +398,8 @@ void SDL::ditherSurface32bppTo16Bpp(SDL_Surface * src_surface){
|
|||||||
g_old = GET_G_32BIT(cur_px);
|
g_old = GET_G_32BIT(cur_px);
|
||||||
b_old = GET_B_32BIT(cur_px);
|
b_old = GET_B_32BIT(cur_px);
|
||||||
r_new = CLOSEST_RB(r_old);
|
r_new = CLOSEST_RB(r_old);
|
||||||
g_new = CLOSEST_G(g_old);
|
//g_new = CLOSEST_G(g_old);
|
||||||
|
g_new = CLOSEST_RB(g_old); //RGB555
|
||||||
b_new = CLOSEST_RB(b_old);
|
b_new = CLOSEST_RB(b_old);
|
||||||
|
|
||||||
/* Set new pixel value */
|
/* Set new pixel value */
|
||||||
|
|||||||
Reference in New Issue
Block a user