From 0b8b05d57203d36de9cbf900b16846ef302de5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Corr=C3=AAa=20da=20Silva=20Sanches?= Date: Thu, 22 Oct 2015 08:38:39 -0200 Subject: [PATCH] PSX GPU: Fix the 24bit rendering of video sequences on games such as GranTurismo and Digimon World 3 --- src/devices/video/psx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/video/psx.c b/src/devices/video/psx.c index 167280e3415..29362df326e 100644 --- a/src/devices/video/psx.c +++ b/src/devices/video/psx.c @@ -724,7 +724,7 @@ UINT32 psxgpu_device::update_screen(screen_device &screen, bitmap_ind16 &bitmap, n_line = n_lines; while( n_line > 0 ) { - UINT16 *p_n_src = p_p_vram[ n_y + n_displaystarty ] + ((n_x + n_displaystartx) * 3); + UINT16 *p_n_src = p_p_vram[ n_y + n_displaystarty ] + 3 * n_x + n_displaystartx; UINT16 *p_n_dest = &bitmap.pix16(n_y + n_top, n_x + n_left); n_column = n_columns;