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:
Vincent-FK 2020-04-05 15:44:17 +02:00
parent 2eb437708d
commit 574ab1ae30

View File

@ -398,7 +398,8 @@ void SDL::ditherSurface32bppTo16Bpp(SDL_Surface * src_surface){
g_old = GET_G_32BIT(cur_px);
b_old = GET_B_32BIT(cur_px);
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);
/* Set new pixel value */