Skip to content

Commit 574ab1a

Browse files
committed
set dithering to rgb555 instead of rgb565 as it seems the screen only supports rgb555
Signed-off-by: Vincent-FK <[email protected]>
1 parent 2eb4377 commit 574ab1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RetroFE/Source/SDL.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ void SDL::ditherSurface32bppTo16Bpp(SDL_Surface * src_surface){
398398
g_old = GET_G_32BIT(cur_px);
399399
b_old = GET_B_32BIT(cur_px);
400400
r_new = CLOSEST_RB(r_old);
401-
g_new = CLOSEST_G(g_old);
401+
//g_new = CLOSEST_G(g_old);
402+
g_new = CLOSEST_RB(g_old); //RGB555
402403
b_new = CLOSEST_RB(b_old);
403404

404405
/* Set new pixel value */

0 commit comments

Comments
 (0)