From d91ab53739f331e6ce979463afdbbe7b5fd638cd Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 17 Aug 2023 02:38:32 +0300 Subject: [PATCH] gpu_neon: change enhancement_buf selection Not sure what was the idea there but it caused rightmost column of things simetimes to not get rendered, like in Alundra 2 loading screens and FMVs. --- plugins/gpu_neon/psx_gpu/psx_gpu_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c index 6a88beb7..37622580 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c @@ -798,7 +798,7 @@ static void update_enhancement_buf_table_from_hres(psx_gpu_struct *psx_gpu) s = psx_gpu->enhancement_x_threshold; for (x = 0; x < sizeof(psx_gpu->enhancement_buf_by_x16); x++) { - if (b < 3 && x * ENH_BUF_TABLE_STEP >= s - ENH_BUF_TABLE_STEP - 1) + if (b < 3 && x * ENH_BUF_TABLE_STEP >= s) { s += psx_gpu->enhancement_x_threshold; b++; -- 2.39.2