From d319be224f3fd1a61c0095cd97905820580bc9d1 Mon Sep 17 00:00:00 2001 From: smf- Date: Fri, 29 Mar 2013 17:48:03 +0000 Subject: [PATCH] Treat x & y coordinates as 11 bit signed, Ridge Racer Revolution loading game sets unused bits. [smf] --- src/emu/video/psx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/video/psx.c b/src/emu/video/psx.c index 30b90c4c77b..56668d0fcea 100644 --- a/src/emu/video/psx.c +++ b/src/emu/video/psx.c @@ -81,8 +81,8 @@ static const UINT16 m_p_n_prevpointlist3[] = { 2, 0, 1 }; #define SINT11( x ) ( ( (INT32)( x ) << 21 ) >> 21 ) #define ADJUST_COORD( a ) \ - a.w.l = COORD_X( a ) + n_drawoffset_x; \ - a.w.h = COORD_Y( a ) + n_drawoffset_y; + a.w.l = SINT11( COORD_X( a ) + n_drawoffset_x ); \ + a.w.h = SINT11( COORD_Y( a ) + n_drawoffset_y ); #define COORD_X( a ) ( (INT16)a.w.l ) #define COORD_Y( a ) ( (INT16)a.w.h )