mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
Treat x & y coordinates as 11 bit signed, Ridge Racer Revolution loading game sets unused bits. [smf]
This commit is contained in:
parent
624dfff24e
commit
d319be224f
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user